From b9535cfed51d92e1abff0134e74825b1eb38b11f Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Wed, 21 Jul 2004 15:03:14 +0000 Subject: Changed Makefile for Kaffe support. Added new class LassoObject. First non regression test. --- java/src/c/.cvsignore | 2 + java/src/c/com_entrouvert_lasso_Lasso.c | 6 +-- .../src/c/com_entrouvert_lasso_LassoAuthnRequest.c | 6 +-- .../c/com_entrouvert_lasso_LassoAuthnResponse.c | 46 +++++++++++----------- java/src/c/com_entrouvert_lasso_LassoLogin.c | 6 +-- java/src/c/com_entrouvert_lasso_LassoLogout.c | 6 +-- java/src/c/com_entrouvert_lasso_LassoNode.c | 6 +-- java/src/c/com_entrouvert_lasso_LassoObject.c | 27 +++++++++++++ .../c/com_entrouvert_lasso_LassoProfileContext.c | 46 +++++++++++----------- java/src/c/com_entrouvert_lasso_LassoProvider.c | 46 +++++++++++----------- java/src/c/com_entrouvert_lasso_LassoRequest.c | 6 +-- java/src/c/com_entrouvert_lasso_LassoResponse.c | 6 +-- java/src/c/com_entrouvert_lasso_LassoServer.c | 15 +++++-- java/src/c/com_entrouvert_lasso_LassoUser.c | 6 +-- 14 files changed, 134 insertions(+), 96 deletions(-) create mode 100644 java/src/c/.cvsignore create mode 100644 java/src/c/com_entrouvert_lasso_LassoObject.c (limited to 'java/src/c') 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 + * Emmanuel Raviart * * 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 + * Emmanuel Raviart * * 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 -* -* 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 + * Emmanuel Raviart + * + * 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 #include 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 + * Emmanuel Raviart * * 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 + * Emmanuel Raviart * * 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 + * Emmanuel Raviart * * 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 + * Emmanuel Raviart + * + * 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 +#include +#include 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 -* -* 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 + * Emmanuel Raviart + * + * 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 #include 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 -* -* 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 + * Emmanuel Raviart + * + * 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 #include 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 + * Emmanuel Raviart * * 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 + * Emmanuel Raviart * * 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 + * Emmanuel Raviart * * 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 + * Emmanuel Raviart * * 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 -- cgit