summaryrefslogtreecommitdiffstats
path: root/java/src/c
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-07-21 15:03:14 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-07-21 15:03:14 +0000
commitb9535cfed51d92e1abff0134e74825b1eb38b11f (patch)
tree86b4f1ef4a64e037a9c833d545e0d0ac802c085f /java/src/c
parent08254badc10dc83c4bb941e498aba0737deff485 (diff)
downloadlasso-b9535cfed51d92e1abff0134e74825b1eb38b11f.tar.gz
lasso-b9535cfed51d92e1abff0134e74825b1eb38b11f.tar.xz
lasso-b9535cfed51d92e1abff0134e74825b1eb38b11f.zip
Changed Makefile for Kaffe support.
Added new class LassoObject. First non regression test.
Diffstat (limited to 'java/src/c')
-rw-r--r--java/src/c/.cvsignore2
-rw-r--r--java/src/c/com_entrouvert_lasso_Lasso.c6
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoAuthnRequest.c6
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoAuthnResponse.c46
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoLogin.c6
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoLogout.c6
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoNode.c6
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoObject.c27
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoProfileContext.c46
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoProvider.c46
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoRequest.c6
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoResponse.c6
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoServer.c15
-rw-r--r--java/src/c/com_entrouvert_lasso_LassoUser.c6
14 files changed, 134 insertions, 96 deletions
diff --git a/java/src/c/.cvsignore b/java/src/c/.cvsignore
new file mode 100644
index 00000000..36283c56
--- /dev/null
+++ b/java/src/c/.cvsignore
@@ -0,0 +1,2 @@
+com_entrouvert_lasso_*.h
+target_classes.h
diff --git a/java/src/c/com_entrouvert_lasso_Lasso.c b/java/src/c/com_entrouvert_lasso_Lasso.c
index 6ef512ea..cc56abce 100644
--- a/java/src/c/com_entrouvert_lasso_Lasso.c
+++ b/java/src/c/com_entrouvert_lasso_Lasso.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/java/src/c/com_entrouvert_lasso_LassoAuthnRequest.c b/java/src/c/com_entrouvert_lasso_LassoAuthnRequest.c
index 2069cd2d..1ab39c0e 100644
--- a/java/src/c/com_entrouvert_lasso_LassoAuthnRequest.c
+++ b/java/src/c/com_entrouvert_lasso_LassoAuthnRequest.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/java/src/c/com_entrouvert_lasso_LassoAuthnResponse.c b/java/src/c/com_entrouvert_lasso_LassoAuthnResponse.c
index c783e730..866ef6a6 100644
--- a/java/src/c/com_entrouvert_lasso_LassoAuthnResponse.c
+++ b/java/src/c/com_entrouvert_lasso_LassoAuthnResponse.c
@@ -1,26 +1,26 @@
-/* $Id$
-*
-* JLasso -- Java bindings for Lasso library
-*
-* Copyright (C) 2004 Entr'ouvert
-* http://lasso.labs.libre-entreprise.org
-*
-* Authors: Benjamin Poussin <poussin@codelutin.com>
-*
-* This program is free software{} you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation{} either version 2 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY{} without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program{} if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
+/*
+ * JLasso -- Java bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.entrouvert.com
+ *
+ * Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include <helper.h>
#include <com_entrouvert_lasso_LassoAuthnResponse.h>
diff --git a/java/src/c/com_entrouvert_lasso_LassoLogin.c b/java/src/c/com_entrouvert_lasso_LassoLogin.c
index b544ca2d..13058099 100644
--- a/java/src/c/com_entrouvert_lasso_LassoLogin.c
+++ b/java/src/c/com_entrouvert_lasso_LassoLogin.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/java/src/c/com_entrouvert_lasso_LassoLogout.c b/java/src/c/com_entrouvert_lasso_LassoLogout.c
index 5d899eac..f67893fb 100644
--- a/java/src/c/com_entrouvert_lasso_LassoLogout.c
+++ b/java/src/c/com_entrouvert_lasso_LassoLogout.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/java/src/c/com_entrouvert_lasso_LassoNode.c b/java/src/c/com_entrouvert_lasso_LassoNode.c
index 2d965736..44296ddf 100644
--- a/java/src/c/com_entrouvert_lasso_LassoNode.c
+++ b/java/src/c/com_entrouvert_lasso_LassoNode.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/java/src/c/com_entrouvert_lasso_LassoObject.c b/java/src/c/com_entrouvert_lasso_LassoObject.c
new file mode 100644
index 00000000..c4076db9
--- /dev/null
+++ b/java/src/c/com_entrouvert_lasso_LassoObject.c
@@ -0,0 +1,27 @@
+/*
+ * JLasso -- Java bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.entrouvert.com
+ *
+ * Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <helper.h>
+#include <lasso/lasso.h>
+#include <com_entrouvert_lasso_LassoNode.h>
diff --git a/java/src/c/com_entrouvert_lasso_LassoProfileContext.c b/java/src/c/com_entrouvert_lasso_LassoProfileContext.c
index 0f66df9d..56dc0afa 100644
--- a/java/src/c/com_entrouvert_lasso_LassoProfileContext.c
+++ b/java/src/c/com_entrouvert_lasso_LassoProfileContext.c
@@ -1,26 +1,26 @@
-/* $Id$
-*
-* JLasso -- Java bindings for Lasso library
-*
-* Copyright (C) 2004 Entr'ouvert
-* http://lasso.labs.libre-entreprise.org
-*
-* Authors: Benjamin Poussin <poussin@codelutin.com>
-*
-* This program is free software{} you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation{} either version 2 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY{} without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program{} if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
+/*
+ * JLasso -- Java bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.entrouvert.com
+ *
+ * Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include <helper.h>
#include <lasso/lasso.h>
diff --git a/java/src/c/com_entrouvert_lasso_LassoProvider.c b/java/src/c/com_entrouvert_lasso_LassoProvider.c
index b089e09f..ee4decc0 100644
--- a/java/src/c/com_entrouvert_lasso_LassoProvider.c
+++ b/java/src/c/com_entrouvert_lasso_LassoProvider.c
@@ -1,26 +1,26 @@
-/* $Id$
-*
-* JLasso -- Java bindings for Lasso library
-*
-* Copyright (C) 2004 Entr'ouvert
-* http://lasso.labs.libre-entreprise.org
-*
-* Authors: Benjamin Poussin <poussin@codelutin.com>
-*
-* This program is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 2 of the License, or
-* (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
+/*
+ * JLasso -- Java bindings for Lasso library
+ *
+ * Copyright (C) 2004 Entr'ouvert
+ * http://lasso.entrouvert.com
+ *
+ * Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
#include <helper.h>
#include <lasso/lasso.h>
diff --git a/java/src/c/com_entrouvert_lasso_LassoRequest.c b/java/src/c/com_entrouvert_lasso_LassoRequest.c
index 74790be5..9c7e8ee3 100644
--- a/java/src/c/com_entrouvert_lasso_LassoRequest.c
+++ b/java/src/c/com_entrouvert_lasso_LassoRequest.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/java/src/c/com_entrouvert_lasso_LassoResponse.c b/java/src/c/com_entrouvert_lasso_LassoResponse.c
index ad294c2a..1f574afb 100644
--- a/java/src/c/com_entrouvert_lasso_LassoResponse.c
+++ b/java/src/c/com_entrouvert_lasso_LassoResponse.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
diff --git a/java/src/c/com_entrouvert_lasso_LassoServer.c b/java/src/c/com_entrouvert_lasso_LassoServer.c
index ac4072f6..a975eb94 100644
--- a/java/src/c/com_entrouvert_lasso_LassoServer.c
+++ b/java/src/c/com_entrouvert_lasso_LassoServer.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -102,3 +102,12 @@ JNIEXPORT jstring JNICALL Java_com_entrouvert_lasso_LassoServer_dump
return (*env)->NewStringUTF(env, result);
}
+
+JNIEXPORT void JNICALL Java_com_entrouvert_lasso_LassoServer_destroy
+(JNIEnv * env, jobject this){
+
+ void* server = (LassoServer*)getCObject(env, this);
+
+ lasso_server_destroy(server);
+}
+
diff --git a/java/src/c/com_entrouvert_lasso_LassoUser.c b/java/src/c/com_entrouvert_lasso_LassoUser.c
index 5897e3d5..9cce3d58 100644
--- a/java/src/c/com_entrouvert_lasso_LassoUser.c
+++ b/java/src/c/com_entrouvert_lasso_LassoUser.c
@@ -1,11 +1,11 @@
-/* $Id$
- *
+/*
* JLasso -- Java bindings for Lasso library
*
* Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
+ * http://lasso.entrouvert.com
*
* Authors: Benjamin Poussin <poussin@codelutin.com>
+ * Emmanuel Raviart <eraviart@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by