guile: Update list of error values.
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Jun 2019 08:34:42 +0000 (10:34 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 12 Jun 2019 20:27:00 +0000 (22:27 +0200)
* guile/modules/gnutls/build/enums.scm (%error-enum): Update list of
error constants.
* guile/modules/gnutls.in (gnutls): Adjust exports accordingly.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
guile/modules/gnutls.in
guile/modules/gnutls/build/enums.scm

index d705a0db42a32aef5ecdc671d583e765ab62a04d..98eda3fdc99ebb539f3ec448f2adaad52e63602c 100644 (file)
@@ -1,5 +1,5 @@
 ;;; GnuTLS --- Guile bindings for GnuTLS.
-;;; Copyright (C) 2007-2012, 2014, 2015, 2016 Free Software Foundation, Inc.
+;;; Copyright (C) 2007-2012, 2014, 2015, 2016, 2019 Free Software Foundation, Inc.
 ;;;
 ;;; GnuTLS is free software; you can redistribute it and/or
 ;;; modify it under the terms of the GNU Lesser General Public
            ;;   sed -r -e 's|^#define GNUTLS_E_([^ ]+).*$|error/\1|' | tr A-Z_ a-z-
            error/success
            error/unsupported-version-packet
+           error/tls-packet-decoding-error
            error/unexpected-packet-length
            error/invalid-session
            error/fatal-alert-received
            error/expired
            error/db-error
            error/srp-pwd-error
+           error/keyfile-error
            error/insufficient-credentials
            error/insuficient-credentials
            error/insufficient-cred
            error/too-many-empty-packets
            error/unknown-pk-algorithm
            error/too-many-handshake-packets
+           error/received-disallowed-name
+           error/certificate-required
            error/no-temporary-rsa-params
            error/no-compression-algorithms
            error/no-cipher-suites
            error/pk-sig-verify-failed
            error/illegal-srp-username
            error/srp-pwd-parsing-error
+           error/keyfile-parsing-error
            error/no-temporary-dh-params
            error/asn1-element-not-found
            error/asn1-identifier-not-found
            error/unsafe-renegotiation-denied
            error/unknown-srp-username
            error/premature-termination
+           error/malformed-cidr
            error/base64-encoding-error
            error/incompatible-gcrypt-library
            error/incompatible-crypto-library
            error/base64-unexpected-header-error
            error/openpgp-subkey-error
            error/crypto-already-registered
+           error/already-registered
            error/handshake-too-large
            error/cryptodev-ioctl-error
            error/cryptodev-device-error
            error/bad-cookie
            error/openpgp-preferred-key-error
            error/incompat-dsa-key-with-tls-protocol
+           error/insufficient-security
+           error/heartbeat-pong-received
+           error/heartbeat-ping-received
+           error/unrecognized-name
            error/pkcs11-error
            error/pkcs11-load-error
            error/parsing-error
            error/certificate-list-unsorted
            error/illegal-parameter
            error/no-priorities-were-set
+           error/x509-unsupported-extension
+           error/session-eof
+           error/tpm-error
+           error/tpm-key-password-error
+           error/tpm-srk-password-error
+           error/tpm-session-error
+           error/tpm-key-not-found
+           error/tpm-uninitialized
+           error/tpm-no-lib
+           error/no-certificate-status
+           error/ocsp-response-error
+           error/random-device-error
+           error/auth-error
+           error/no-application-protocol
+           error/sockets-init-error
+           error/key-import-failed
+           error/inappropriate-fallback
+           error/certificate-verification-error
+           error/privkey-verification-error
+           error/unexpected-extensions-length
+           error/asn1-embedded-null-in-string
+           error/self-test-error
+           error/no-self-test
+           error/lib-in-error-state
+           error/pk-generation-error
+           error/idna-error
+           error/need-fallback
+           error/session-user-id-changed
+           error/handshake-during-false-start
+           error/unavailable-during-handshake
+           error/pk-invalid-pubkey
+           error/pk-invalid-privkey
+           error/not-yet-activated
+           error/invalid-utf8-string
+           error/no-embedded-data
+           error/invalid-utf8-email
+           error/invalid-password-string
+           error/certificate-time-error
+           error/record-overflow
+           error/asn1-time-error
+           error/incompatible-sig-with-key
+           error/pk-invalid-pubkey-params
+           error/pk-no-validation-params
+           error/ocsp-mismatch-with-certs
+           error/no-common-key-share
+           error/reauth-request
+           error/too-many-matches
+           error/crl-verification-error
+           error/missing-extension
+           error/db-entry-exists
+           error/early-data-rejected
            error/unimplemented-feature
+           error/int-ret-0
+           error/int-check-again
            error/application-error-max
            error/application-error-min
 
index 1ef46b77a55b1ea9ff135ccbc22753704a320864..7bfb5d2533dfd59d5d1fe09419c8c0ed7d4d9d4c 100644 (file)
@@ -1,5 +1,5 @@
 ;;; GnuTLS --- Guile bindings for GnuTLS.
-;;; Copyright (C) 2007-2012, 2014 Free Software Foundation, Inc.
+;;; Copyright (C) 2007-2012, 2014, 2019 Free Software Foundation, Inc.
 ;;;
 ;;; GnuTLS is free software; you can redistribute it and/or
 ;;; modify it under the terms of the GNU Lesser General Public
@@ -459,10 +459,11 @@ unrecognized-name unknown-psk-identity)
   (make-enum-type 'error "int"
                   '(
 ;; FIXME: Automate this:
-;; grep '^#define GNUTLS_E_' ../../../../includes/gnutls/gnutls.h.in \
+;; grep '^#define GNUTLS_E_' ../../../lib/includes/gnutls/gnutls.h.in \
 ;;  | sed -r -e 's/^#define GNUTLS_E_([^ ]+).*$/\1/' | tr A-Z_ a-z-
 success
 unsupported-version-packet
+tls-packet-decoding-error
 unexpected-packet-length
 invalid-session
 fatal-alert-received
@@ -478,6 +479,7 @@ again
 expired
 db-error
 srp-pwd-error
+keyfile-error
 insufficient-credentials
 insuficient-credentials
 insufficient-cred
@@ -509,6 +511,8 @@ file-error
 too-many-empty-packets
 unknown-pk-algorithm
 too-many-handshake-packets
+received-disallowed-name
+certificate-required
 no-temporary-rsa-params
 no-compression-algorithms
 no-cipher-suites
@@ -516,6 +520,7 @@ openpgp-getkey-failed
 pk-sig-verify-failed
 illegal-srp-username
 srp-pwd-parsing-error
+keyfile-parsing-error
 no-temporary-dh-params
 asn1-element-not-found
 asn1-identifier-not-found
@@ -551,6 +556,7 @@ safe-renegotiation-failed
 unsafe-renegotiation-denied
 unknown-srp-username
 premature-termination
+malformed-cidr
 base64-encoding-error
 incompatible-gcrypt-library
 incompatible-crypto-library
@@ -561,6 +567,7 @@ random-failed
 base64-unexpected-header-error
 openpgp-subkey-error
 crypto-already-registered
+already-registered
 handshake-too-large
 cryptodev-ioctl-error
 cryptodev-device-error
@@ -568,6 +575,10 @@ channel-binding-not-available
 bad-cookie
 openpgp-preferred-key-error
 incompat-dsa-key-with-tls-protocol
+insufficient-security
+heartbeat-pong-received
+heartbeat-ping-received
+unrecognized-name
 pkcs11-error
 pkcs11-load-error
 parsing-error
@@ -594,7 +605,60 @@ pkcs11-requested-object-not-availble
 certificate-list-unsorted
 illegal-parameter
 no-priorities-were-set
+x509-unsupported-extension
+session-eof
+tpm-error
+tpm-key-password-error
+tpm-srk-password-error
+tpm-session-error
+tpm-key-not-found
+tpm-uninitialized
+tpm-no-lib
+no-certificate-status
+ocsp-response-error
+random-device-error
+auth-error
+no-application-protocol
+sockets-init-error
+key-import-failed
+inappropriate-fallback
+certificate-verification-error
+privkey-verification-error
+unexpected-extensions-length
+asn1-embedded-null-in-string
+self-test-error
+no-self-test
+lib-in-error-state
+pk-generation-error
+idna-error
+need-fallback
+session-user-id-changed
+handshake-during-false-start
+unavailable-during-handshake
+pk-invalid-pubkey
+pk-invalid-privkey
+not-yet-activated
+invalid-utf8-string
+no-embedded-data
+invalid-utf8-email
+invalid-password-string
+certificate-time-error
+record-overflow
+asn1-time-error
+incompatible-sig-with-key
+pk-invalid-pubkey-params
+pk-no-validation-params
+ocsp-mismatch-with-certs
+no-common-key-share
+reauth-request
+too-many-matches
+crl-verification-error
+missing-extension
+db-entry-exists
+early-data-rejected
 unimplemented-feature
+int-ret-0
+int-check-again
 application-error-max
 application-error-min
 )