Next: , Previous: , Up: Top   [Contents][Index]


Appendix C Error Codes and Descriptions

The error codes used throughout the library are described below. The return code GNUTLS_E_SUCCESS indicates a successful operation, and is guaranteed to have the value 0, so you can use it in logical expressions.

0GNUTLS_E_SUCCESSSuccess.
-3GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHMCould not negotiate a supported compression method.
-6GNUTLS_E_UNKNOWN_CIPHER_TYPEThe cipher type is unsupported.
-7GNUTLS_E_LARGE_PACKETThe transmitted packet is too large (EMSGSIZE).
-8GNUTLS_E_UNSUPPORTED_VERSION_PACKETA packet with illegal or unsupported version was received.
-9GNUTLS_E_UNEXPECTED_PACKET_LENGTHError decoding the received TLS packet.
-10GNUTLS_E_INVALID_SESSIONThe specified session has been invalidated for some reason.
-12GNUTLS_E_FATAL_ALERT_RECEIVEDA TLS fatal alert has been received.
-15GNUTLS_E_UNEXPECTED_PACKETAn unexpected TLS packet was received.
-16GNUTLS_E_WARNING_ALERT_RECEIVEDA TLS warning alert has been received.
-18GNUTLS_E_ERROR_IN_FINISHED_PACKETAn error was encountered at the TLS Finished packet calculation.
-19GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKETAn unexpected TLS handshake packet was received.
-21GNUTLS_E_UNKNOWN_CIPHER_SUITECould not negotiate a supported cipher suite.
-22GNUTLS_E_UNWANTED_ALGORITHMAn algorithm that is not enabled was negotiated.
-23GNUTLS_E_MPI_SCAN_FAILEDThe scanning of a large integer has failed.
-24GNUTLS_E_DECRYPTION_FAILEDDecryption has failed.
-25GNUTLS_E_MEMORY_ERRORInternal error in memory allocation.
-26GNUTLS_E_DECOMPRESSION_FAILEDDecompression of the TLS record packet has failed.
-27GNUTLS_E_COMPRESSION_FAILEDCompression of the TLS record packet has failed.
-28GNUTLS_E_AGAINResource temporarily unavailable, try again.
-29GNUTLS_E_EXPIREDThe session or certificate has expired.
-30GNUTLS_E_DB_ERRORError in Database backend.
-31GNUTLS_E_SRP_PWD_ERRORError in password/key file.
-32GNUTLS_E_INSUFFICIENT_CREDENTIALSInsufficient credentials for that request.
-33GNUTLS_E_HASH_FAILEDHashing has failed.
-34GNUTLS_E_BASE64_DECODING_ERRORBase64 decoding error.
-35GNUTLS_E_MPI_PRINT_FAILEDCould not export a large integer.
-37GNUTLS_E_REHANDSHAKERehandshake was requested by the peer.
-38GNUTLS_E_GOT_APPLICATION_DATATLS Application data were received, while expecting handshake data.
-39GNUTLS_E_RECORD_LIMIT_REACHEDThe upper limit of record packet sequence numbers has been reached. Wow!
-40GNUTLS_E_ENCRYPTION_FAILEDEncryption has failed.
-43GNUTLS_E_CERTIFICATE_ERRORError in the certificate.
-44GNUTLS_E_PK_ENCRYPTION_FAILEDPublic key encryption has failed.
-45GNUTLS_E_PK_DECRYPTION_FAILEDPublic key decryption has failed.
-46GNUTLS_E_PK_SIGN_FAILEDPublic key signing has failed.
-47GNUTLS_E_X509_UNSUPPORTED_CRITICAL_EXTENSIONUnsupported critical extension in X.509 certificate.
-48GNUTLS_E_KEY_USAGE_VIOLATIONKey usage violation in certificate has been detected.
-49GNUTLS_E_NO_CERTIFICATE_FOUNDNo certificate was found.
-50GNUTLS_E_INVALID_REQUESTThe request is invalid.
-51GNUTLS_E_SHORT_MEMORY_BUFFERThe given memory buffer is too short to hold parameters.
-52GNUTLS_E_INTERRUPTEDFunction was interrupted.
-53GNUTLS_E_PUSH_ERRORError in the push function.
-54GNUTLS_E_PULL_ERRORError in the pull function.
-55GNUTLS_E_RECEIVED_ILLEGAL_PARAMETERAn illegal parameter has been received.
-56GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEThe requested data were not available.
-57GNUTLS_E_PKCS1_WRONG_PADWrong padding in PKCS1 packet.
-58GNUTLS_E_RECEIVED_ILLEGAL_EXTENSIONAn illegal TLS extension was received.
-59GNUTLS_E_INTERNAL_ERRORGnuTLS internal error.
-60GNUTLS_E_CERTIFICATE_KEY_MISMATCHThe certificate and the given key do not match.
-61GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPEThe certificate type is not supported.
-62GNUTLS_E_X509_UNKNOWN_SANUnknown Subject Alternative name in X.509 certificate.
-63GNUTLS_E_DH_PRIME_UNACCEPTABLEThe Diffie-Hellman prime sent by the server is not acceptable (not long enough).
-64GNUTLS_E_FILE_ERRORError while reading file.
-67GNUTLS_E_ASN1_ELEMENT_NOT_FOUNDASN1 parser: Element was not found.
-68GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUNDASN1 parser: Identifier was not found
-69GNUTLS_E_ASN1_DER_ERRORASN1 parser: Error in DER parsing.
-70GNUTLS_E_ASN1_VALUE_NOT_FOUNDASN1 parser: Value was not found.
-71GNUTLS_E_ASN1_GENERIC_ERRORASN1 parser: Generic parsing error.
-72GNUTLS_E_ASN1_VALUE_NOT_VALIDASN1 parser: Value is not valid.
-73GNUTLS_E_ASN1_TAG_ERRORASN1 parser: Error in TAG.
-74GNUTLS_E_ASN1_TAG_IMPLICITASN1 parser: error in implicit tag
-75GNUTLS_E_ASN1_TYPE_ANY_ERRORASN1 parser: Error in type ’ANY’.
-76GNUTLS_E_ASN1_SYNTAX_ERRORASN1 parser: Syntax error.
-77GNUTLS_E_ASN1_DER_OVERFLOWASN1 parser: Overflow in DER parsing.
-78GNUTLS_E_TOO_MANY_EMPTY_PACKETSToo many empty record packets have been received.
-79GNUTLS_E_OPENPGP_UID_REVOKEDThe OpenPGP User ID is revoked.
-80GNUTLS_E_UNKNOWN_PK_ALGORITHMAn unknown public key algorithm was encountered.
-81GNUTLS_E_TOO_MANY_HANDSHAKE_PACKETSToo many handshake packets have been received.
-82GNUTLS_E_RECEIVED_DISALLOWED_NAMEA disallowed SNI server name has been received.
-84GNUTLS_E_NO_TEMPORARY_RSA_PARAMSNo temporary RSA parameters were found.
-86GNUTLS_E_NO_COMPRESSION_ALGORITHMSNo supported compression algorithms have been found.
-87GNUTLS_E_NO_CIPHER_SUITESNo supported cipher suites have been found.
-88GNUTLS_E_OPENPGP_GETKEY_FAILEDCould not get OpenPGP key.
-89GNUTLS_E_PK_SIG_VERIFY_FAILEDPublic key signature verification has failed.
-90GNUTLS_E_ILLEGAL_SRP_USERNAMEThe SRP username supplied is illegal.
-91GNUTLS_E_SRP_PWD_PARSING_ERRORParsing error in password/key file.
-93GNUTLS_E_NO_TEMPORARY_DH_PARAMSNo temporary DH parameters were found.
-94GNUTLS_E_OPENPGP_FINGERPRINT_UNSUPPORTEDThe OpenPGP fingerprint is not supported.
-95GNUTLS_E_X509_UNSUPPORTED_ATTRIBUTEThe certificate has unsupported attributes.
-96GNUTLS_E_UNKNOWN_HASH_ALGORITHMThe hash algorithm is unknown.
-97GNUTLS_E_UNKNOWN_PKCS_CONTENT_TYPEThe PKCS structure’s content type is unknown.
-98GNUTLS_E_UNKNOWN_PKCS_BAG_TYPEThe PKCS structure’s bag type is unknown.
-99GNUTLS_E_INVALID_PASSWORDThe given password contains invalid characters.
-100GNUTLS_E_MAC_VERIFY_FAILEDThe Message Authentication Code verification failed.
-101GNUTLS_E_CONSTRAINT_ERRORSome constraint limits were reached.
-104GNUTLS_E_IA_VERIFY_FAILEDVerifying TLS/IA phase checksum failed
-105GNUTLS_E_UNKNOWN_ALGORITHMThe specified algorithm or protocol is unknown.
-106GNUTLS_E_UNSUPPORTED_SIGNATURE_ALGORITHMThe signature algorithm is not supported.
-107GNUTLS_E_SAFE_RENEGOTIATION_FAILEDSafe renegotiation failed.
-108GNUTLS_E_UNSAFE_RENEGOTIATION_DENIEDUnsafe renegotiation denied.
-109GNUTLS_E_UNKNOWN_SRP_USERNAMEThe username supplied is unknown.
-110GNUTLS_E_PREMATURE_TERMINATIONThe TLS connection was non-properly terminated.
-111GNUTLS_E_MALFORMED_CIDRCIDR name constraint is malformed in size or structure.
-112GNUTLS_E_CERTIFICATE_REQUIREDCertificate is required.
-201GNUTLS_E_BASE64_ENCODING_ERRORBase64 encoding error.
-202GNUTLS_E_INCOMPATIBLE_GCRYPT_LIBRARYThe crypto library version is too old.
-203GNUTLS_E_INCOMPATIBLE_LIBTASN1_LIBRARYThe tasn1 library version is too old.
-204GNUTLS_E_OPENPGP_KEYRING_ERRORError loading the keyring.
-205GNUTLS_E_X509_UNSUPPORTED_OIDThe OID is not supported.
-206GNUTLS_E_RANDOM_FAILEDFailed to acquire random data.
-207GNUTLS_E_BASE64_UNEXPECTED_HEADER_ERRORBase64 unexpected header error.
-208GNUTLS_E_OPENPGP_SUBKEY_ERRORCould not find OpenPGP subkey.
-209GNUTLS_E_CRYPTO_ALREADY_REGISTEREDThere is already a crypto algorithm with lower priority.
-210GNUTLS_E_HANDSHAKE_TOO_LARGEThe handshake data size is too large.
-211GNUTLS_E_CRYPTODEV_IOCTL_ERRORError interfacing with /dev/crypto
-212GNUTLS_E_CRYPTODEV_DEVICE_ERRORError opening /dev/crypto
-213GNUTLS_E_CHANNEL_BINDING_NOT_AVAILABLEChannel binding data not available
-214GNUTLS_E_BAD_COOKIEThe cookie was bad.
-215GNUTLS_E_OPENPGP_PREFERRED_KEY_ERRORThe OpenPGP key has not a preferred key set.
-216GNUTLS_E_INCOMPAT_DSA_KEY_WITH_TLS_PROTOCOLThe given DSA key is incompatible with the selected TLS protocol.
-217GNUTLS_E_INSUFFICIENT_SECURITYOne of the involved algorithms has insufficient security level.
-292GNUTLS_E_HEARTBEAT_PONG_RECEIVEDA heartbeat pong message was received.
-293GNUTLS_E_HEARTBEAT_PING_RECEIVEDA heartbeat ping message was received.
-294GNUTLS_E_UNRECOGNIZED_NAMEThe SNI host name not recognised.
-300GNUTLS_E_PKCS11_ERRORPKCS #11 error.
-301GNUTLS_E_PKCS11_LOAD_ERRORPKCS #11 initialization error.
-302GNUTLS_E_PARSING_ERRORError in parsing.
-303GNUTLS_E_PKCS11_PIN_ERRORError in provided PIN.
-305GNUTLS_E_PKCS11_SLOT_ERRORPKCS #11 error in slot
-306GNUTLS_E_LOCKING_ERRORThread locking error
-307GNUTLS_E_PKCS11_ATTRIBUTE_ERRORPKCS #11 error in attribute
-308GNUTLS_E_PKCS11_DEVICE_ERRORPKCS #11 error in device
-309GNUTLS_E_PKCS11_DATA_ERRORPKCS #11 error in data
-310GNUTLS_E_PKCS11_UNSUPPORTED_FEATURE_ERRORPKCS #11 unsupported feature
-311GNUTLS_E_PKCS11_KEY_ERRORPKCS #11 error in key
-312GNUTLS_E_PKCS11_PIN_EXPIREDPKCS #11 PIN expired
-313GNUTLS_E_PKCS11_PIN_LOCKEDPKCS #11 PIN locked
-314GNUTLS_E_PKCS11_SESSION_ERRORPKCS #11 error in session
-315GNUTLS_E_PKCS11_SIGNATURE_ERRORPKCS #11 error in signature
-316GNUTLS_E_PKCS11_TOKEN_ERRORPKCS #11 error in token
-317GNUTLS_E_PKCS11_USER_ERRORPKCS #11 user error
-318GNUTLS_E_CRYPTO_INIT_FAILEDThe initialization of crypto backend has failed.
-319GNUTLS_E_TIMEDOUTThe operation timed out
-320GNUTLS_E_USER_ERRORThe operation was cancelled due to user error
-321GNUTLS_E_ECC_NO_SUPPORTED_CURVESNo supported ECC curves were found
-322GNUTLS_E_ECC_UNSUPPORTED_CURVEThe curve is unsupported
-323GNUTLS_E_PKCS11_REQUESTED_OBJECT_NOT_AVAILBLEThe requested PKCS #11 object is not available
-324GNUTLS_E_CERTIFICATE_LIST_UNSORTEDThe provided X.509 certificate list is not sorted (in subject to issuer order)
-325GNUTLS_E_ILLEGAL_PARAMETERAn illegal parameter was found.
-326GNUTLS_E_NO_PRIORITIES_WERE_SETNo or insufficient priorities were set.
-327GNUTLS_E_X509_UNSUPPORTED_EXTENSIONUnsupported extension in X.509 certificate.
-328GNUTLS_E_SESSION_EOFPeer has terminated the connection
-329GNUTLS_E_TPM_ERRORTPM error.
-330GNUTLS_E_TPM_KEY_PASSWORD_ERRORError in provided password for key to be loaded in TPM.
-331GNUTLS_E_TPM_SRK_PASSWORD_ERRORError in provided SRK password for TPM.
-332GNUTLS_E_TPM_SESSION_ERRORCannot initialize a session with the TPM.
-333GNUTLS_E_TPM_KEY_NOT_FOUNDTPM key was not found in persistent storage.
-334GNUTLS_E_TPM_UNINITIALIZEDTPM is not initialized.
-335GNUTLS_E_TPM_NO_LIBThe TPM library (trousers) cannot be found.
-340GNUTLS_E_NO_CERTIFICATE_STATUSThere is no certificate status (OCSP).
-341GNUTLS_E_OCSP_RESPONSE_ERRORThe OCSP response is invalid
-342GNUTLS_E_RANDOM_DEVICE_ERRORError in the system’s randomness device.
-343GNUTLS_E_AUTH_ERRORCould not authenticate peer.
-344GNUTLS_E_NO_APPLICATION_PROTOCOLNo common application protocol could be negotiated.
-345GNUTLS_E_SOCKETS_INIT_ERRORError in sockets initialization.
-346GNUTLS_E_KEY_IMPORT_FAILEDFailed to import the key into store.
-347GNUTLS_E_INAPPROPRIATE_FALLBACKA connection with inappropriate fallback was attempted.
-348GNUTLS_E_CERTIFICATE_VERIFICATION_ERRORError in the certificate verification.
-349GNUTLS_E_PRIVKEY_VERIFICATION_ERRORError in the private key verification; seed doesn’t match.
-350GNUTLS_E_UNEXPECTED_EXTENSIONS_LENGTHInvalid TLS extensions length field.
-351GNUTLS_E_ASN1_EMBEDDED_NULL_IN_STRINGThe provided string has an embedded null.
-400GNUTLS_E_SELF_TEST_ERRORError while performing self checks.
-401GNUTLS_E_NO_SELF_TESTThere is no self test for this algorithm.
-402GNUTLS_E_LIB_IN_ERROR_STATEAn error has been detected in the library and cannot continue operations.
-403GNUTLS_E_PK_GENERATION_ERRORError in public key generation.
-404GNUTLS_E_IDNA_ERRORThere was an issue converting to or from UTF8.
-406GNUTLS_E_SESSION_USER_ID_CHANGEDPeer’s certificate or username has changed during a rehandshake.
-407GNUTLS_E_HANDSHAKE_DURING_FALSE_STARTAttempted handshake during false start.
-408GNUTLS_E_UNAVAILABLE_DURING_HANDSHAKECannot perform this action while handshake is in progress.
-409GNUTLS_E_PK_INVALID_PUBKEYThe public key is invalid.
-410GNUTLS_E_PK_INVALID_PRIVKEYThe private key is invalid.
-411GNUTLS_E_NOT_YET_ACTIVATEDThe certificate is not yet activated.
-412GNUTLS_E_INVALID_UTF8_STRINGThe given string contains invalid UTF-8 characters.
-413GNUTLS_E_NO_EMBEDDED_DATAThere are no embedded data in the structure.
-414GNUTLS_E_INVALID_UTF8_EMAILThe given email string contains non-ASCII characters before ’.'
-415GNUTLS_E_INVALID_PASSWORD_STRINGThe given password contains invalid characters.
-416GNUTLS_E_CERTIFICATE_TIME_ERRORError in the time fields of certificate.
-417GNUTLS_E_RECORD_OVERFLOWA TLS record packet with invalid length was received.
-418GNUTLS_E_ASN1_TIME_ERRORThe DER time encoding is invalid.
-419GNUTLS_E_INCOMPATIBLE_SIG_WITH_KEYThe signature is incompatible with the public key.
-420GNUTLS_E_PK_INVALID_PUBKEY_PARAMSThe public key parameters are invalid.
-421GNUTLS_E_PK_NO_VALIDATION_PARAMSThere are no validation parameters present.
-422GNUTLS_E_OCSP_MISMATCH_WITH_CERTSThe OCSP response provided doesn’t match the available certificates
-423GNUTLS_E_NO_COMMON_KEY_SHARENo common key share with peer.
-424GNUTLS_E_REAUTH_REQUESTRe-authentication was requested by the peer.
-425GNUTLS_E_TOO_MANY_MATCHESMore than a single object matches the criteria.
-426GNUTLS_E_CRL_VERIFICATION_ERRORError in the CRL verification.
-427GNUTLS_E_MISSING_EXTENSIONAn required TLS extension was received.
-428GNUTLS_E_DB_ENTRY_EXISTSThe Database entry already exists.
-429GNUTLS_E_EARLY_DATA_REJECTEDThe early data were rejected.
-430GNUTLS_E_X509_DUPLICATE_EXTENSIONDuplicate extension in X.509 certificate.

Next: , Previous: , Up: Top   [Contents][Index]