summaryrefslogtreecommitdiff
path: root/guile/tests
Commit message (Collapse)AuthorAgeFilesLines
* guile: Add support for post-handshake reauthentication.Ludovic Courtès2019-06-121-0/+121
| | | | | | | | | | | | | | | * guile/modules/gnutls/build/enums.scm (%connection-flag-enum): New variable. (%gnutls-enums): Add it. * guile/modules/gnutls.in: Export 'reauthenticate', 'connection-flag->string', and all the 'connection-flag/' bindings. * guile/src/core.c (scm_gnutls_make_session): Add rest arguments FLAGS and honor it. (scm_gnutls_reauthenticate): New function. * guile/tests/reauth.scm: New file. * guile/Makefile.am (TESTS): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* guile: Add bindings for 'gnutls_error_is_fatal'.Ludovic Courtès2019-06-121-11/+15
| | | | | | | | * guile/src/errors.c (scm_gnutls_fatal_error_p): New function. * guile/modules/gnutls.in: Export 'fatal-error?'. * guile/tests/errors.scm: test 'fatal-error?'. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* tests: guile: don't use VERS-TLS-ALLNikos Mavrogiannopoulos2018-02-193-5/+5
| | | | | | That is, avoid enabling experimental protocols. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* guile: removed openpgp related testsNikos Mavrogiannopoulos2017-06-169-402/+0
| | | | Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* guile: do not use +COMP-DEFLATE in priorities testNikos Mavrogiannopoulos2016-11-291-1/+1
| | | | | This allows the test to work even in the cases where gnutls is compiled without zlib support.
* guile: Test 'set-session-transport-fd!'.Ludovic Courtès2016-10-051-1/+1
| | | | | * guile/tests/session-record-port.scm: Use 'set-session-transport-fd!' on the server side.
* guile: Build and install .go files on Guile 2.x.Ludovic Courtès2016-02-151-43/+0
| | | | | | | | | | * configure.ac: Check for 'guild' and substitute 'GUILD'. Define 'HAVE_GUILD'. Substitute 'guileobjectdir'. Don't output guile/modules/Makefile and guile/tests/Makefile. * guile/modules/Makefile.am, guile/tests/Makefile.am: Remove. Move contents to... * guile/Makefile.am: ... here. (SUBDIRS): Remove 'modules' and 'tests'.
* guile: tests: Make sure no processes are left behind.Ludovic Courtès2016-02-154-3/+7
| | | | | | | | Before that, child processes would be left behind and become zombies. * guile/tests/anonymous-auth.scm, guile/tests/openpgp-auth.scm, guile/tests/session-record-port.scm, guile/tests/x509-auth.scm: Add (waitpid pid) call on the server side.
* guile: tests: Add 'with-child-process'.Ludovic Courtès2016-02-154-207/+201
| | | | | | | | | | | | | | This makes sure that child processes always exit no matter what. * guile/modules/gnutls/build/tests.scm (define-syntax-rule) [!guile-2]: New macro. (call-with-child-process): New procedure. (with-child-process): New macro. * guile/tests/anonymous-auth.scm, guile/tests/openpgp-auth.scm, guile/tests/session-record-port.scm, guile/tests/x509-auth.scm: Use it instead of an explicit 'primitive-fork' call. * guile/.dir-locals.el: New file. * guile/Makefile.am (EXTRA_DIST): New variable.
* guile: Open binary file in binary mode, for the sake of MinGW.Ludovic Courtès2014-12-111-2/+2
| | | | | | | Reported by Eli Zaretskii <eliz@gnu.org>. * guile/tests/openpgp-keyring.scm: Use 'open-file' with "rb" instead of 'open-input-file'.
* guile: Remove the deprecated priority API.Ludovic Courtès2014-12-042-41/+10
| | | | | | | | | | | | | | * guile/modules/gnutls/build/priorities.scm: Remove. * guile/src/make-session-priorities.scm: Remove. * guile/modules/Makefile.am (EXTRA_DIST): Adjust accordingly. * guile/src/Makefile.am (EXTRA_DIST): Likewise. (GENERATED_BINDINGS): Remove 'priorities.i.c'. (priorities.i.c): Remove target. * guile/src/core.c: Don't include it. (scm_gnutls_set_default_priority_x): Remove. * guile/modules/gnutls.in (gnutls): Adjust export list. * guile/tests/session-record-port.scm: Use 'set-session-priorities!'. * guile/tests/x509-auth.scm: Likewise.
* guile: Remove RSA parameters and related procedures.Ludovic Courtès2014-12-042-14/+2
| | | | | | | | | | | | | | | | | * guile/modules/gnutls/build/smobs.scm (%rsa-parameters-smob): Remove. (%gnutls-smobs): Remove it. * guile/src/core.c (scm_gnutls_make_rsa_parameters, scm_gnutls_pkcs1_import_rsa_parameters, scm_gnutls_pkcs1_export_rsa_parameters, scm_gnutls_set_certificate_credentials_rsa_export_params_x): Remove. * guile/modules/gnutls.in: Adjust export list. * guile/tests/openpgp-auth.scm (import-rsa-params): Remove. Remove references to it and to 'set-certificate-credentials-rsa-export-parameters!'. * guile/tests/x509-auth.scm: Likewise. * doc/gnutls-guile.texi (Representation of Binary Data): Remove references to RSA parameters. Adjust example accordingly. (OpenPGP Authentication Guile Example): Likewise.
* guile: Add bindings for 'gnutls_server_name_set'.Ludovic Courtès2014-09-221-1/+2
| | | | | This adds the 'set-session-server-name!' procedure and the 'server-name-type' enum type.
* guile: tests: Use `port->fdes' rather than `fileno'.Ludovic Courtès2013-06-283-9/+9
| | | | | This has no practical impact, but it's a better way to express that we don't want the file descriptors closed behind our back.
* corrected priority stringsNikos Mavrogiannopoulos2013-06-061-2/+2
|
* guile: Use `LOG_COMPILER', as required by Automake 1.12+.Ludovic Courtès2013-06-061-3/+4
|
* Print detailed guile warnings (for obsolete functions).Simon Josefsson2012-01-191-0/+1
|
* Collapse and cleanup copyright information.Simon Josefsson2012-01-1610-10/+10
|
* Run 'make update-copyright'.Simon Josefsson2012-01-1612-12/+12
|
* guile: Remove uses of (gnutls extra) from the tests.Ludovic Courtès2011-11-033-3/+1
|
* guile: Fix `priorities' test to use `run-test'.Ludovic Courtès2011-08-221-26/+20
| | | | | | This is a followup to commit cd7b8102316cd4151356c4b2b7909c7435593890 ("guile: Fix tests to match the `exit' behavior introduced in Guile 2.0.1.").
* guile: Fix tests to match the `exit' behavior introduced in Guile 2.0.1.Ludovic Courtès2011-04-2810-151/+94
| | | | | This fix makes tests behave correctly wrt. to the Guile bug fix at <http://git.sv.gnu.org/cgit/guile.git/commit/?id=e309f3bf9ee910c4772353ca3ff95f6f4ef466b5>.
* added missing files.Nikos Mavrogiannopoulos2011-03-241-0/+1
|
* enabled RSA and removed debugging.Nikos Mavrogiannopoulos2011-03-161-4/+4
|
* split the pgp keys to elgamal and dsa.Nikos Mavrogiannopoulos2011-03-166-55/+117
|
* guile: Change tests to use priority strings.Ludovic Courtès2011-03-013-39/+11
|
* guile: Wrap `gnutls_priority_set_direct'; deprecate the old method.Ludovic Courtès2011-02-272-5/+82
|
* Don't generate DH primes in Guile self checks (for speed).Simon Josefsson2010-10-147-6/+52
|
* Change GNUTLS into GnuTLS.Simon Josefsson2010-05-2211-45/+45
|
* Update gnulib files, fix syntax-check warnings.Simon Josefsson2010-04-132-2/+0
|
* Update copyright years.Simon Josefsson2010-01-2711-11/+11
|
* Fix FSF copyright notices.Simon Josefsson2010-01-2710-10/+10
|
* Turn off auto-compilation when using Guile 1.9+.Ludovic Courtès2009-09-231-2/+4
| | | | | | | | | * guile/src/Makefile.am (GUILE_FOR_BUILD): Turn off auto-compilation with Guile 1.9+. * guile/tests/Makefile.am (TESTS_ENVIRONMENT): Likewise. * doc/Makefile.am (GUILE_FOR_BUILD): Likewise.
* Don't run guile openpgp self tests if openpgp is disabled.Simon Josefsson2008-05-071-1/+4
|
* libgnutls: Compile if SRP is disabled.Simon Josefsson2008-05-071-2/+6
| | | | | Report and tiny patches from <jared.jennings.ctr@eglin.af.mil>, see <https://savannah.gnu.org/support/index.php?106342>.
* Also test dhe-rsa.Simon Josefsson2008-01-171-2/+2
|
* Update Guile OpenPGP test cases to use the new names.Ludovic Courtès2007-12-123-17/+19
| | | | | * guile/tests/*.scm: Substitute `certificate' to `public-key' in tests using the OpenPGP API.
* More GPLv3 fixes.Simon Josefsson2007-12-093-3/+3
|
* Small cleanups in `guile/tests'.Ludovic Courtes2007-06-123-21/+0
| | | | Signed-off-by: Simon Josefsson <simon@josefsson.org>
* Started Guile integration.Ludovic Courtès2007-05-3019-0/+1082
Documentation is still missing. A bit rough on the edges, but `make' and `make check' do work.