WOLFSSL MANUAL: APPENDIX C

Download wolfSSL Manual (PDF)

Appendix C: Error Codes

C.1 wolfSSL Error Codes
wolfSSL error codes can be found in wolfssl/ssl.h. For detailed descriptions of the following errors, see the OpenSSL man page for SSL_get_error (man SSL_get_error).

Error Code EnumError CodeError Description
SSL_ERROR_WANT_READ2
SSL_ERROR_WANT_WRITE 3
SSL_ERROR_WANT_CONNECT7
SSL_ERROR_WANT_ACCEPT8
SSL_ERROR_SYSCALL5
SSL_ERROR_WANT_X509_LOOKUP83
SSL_ERROR_ZERO_RETURN6
SSL_ERROR_SSL85

Additional wolfSSL error codes can be found in wolfssl/error-ssl.h.

Error Code EnumError CodeError Description
PREFIX_ERROR-202bad index to key rounds
MEMORY_ERROR-203out of memory
VERIFY_FINISHED_ERROR-204verify problem on finished
VERIFY_MAC_ERROR-205verify mac problem
PARSE_ERROR-206parse error on header
UNKNOWN_HANDSHAKE_TYPE-207weird handshake type
SOCKET_ERROR_E-208error state on socket
SOCKET_NODATA-209expected data, not there
INCOMPLETE_DATA-210don't have enough data to complete task
UNKNOWN_RECORD_TYPE-211unknown type in record hdr
DECRYPT_ERROR-212expected data, not there
FATAL_ERROR-213recvd altert fatal
ENCRYPT_ERROR-214error during encryption
FREAD_ERROR-215fread problem
NO_PEER_KEY-216need peer's key
NO_PRIVATE_KEY-217need the private key
RSA_PRIVATE_ERROR-218error during rsa priv op
NO_DH_PARAMS-219server missing DH params
BUILD_MSG_ERROR-220build message failure
BAD_HELLO-221client hello malformed
DOMAIN_NAME_MISMATCH-222peer subject name mismatch
WANT_READ-223want read, call again
NOT_READY_ERROR-224handshake layer not ready
PMS_VERSION_ERROR-225pre m secret version error
VERSION_ERROR-226record layer version error
WANT_WRITE-227want write, call again
BUFFER_ERROR-228malformed buffer input
VERIFY_CERT_ERROR-229verify cert error
VERIFY_SIGN_ERROR-230verify sign error
CLIENT_ID_ERROR-231psk client identity error
SERVER_HINT_ERROR-232psk server hint error
PSK_KEY_ERROR-233psk key error
ZLIB_INIT_ERROR-234zlib init error
ZLIB_COMPRESS_ERROR-235zlib compression error
ZLIB_DECOMPRESS_ERROR-236zlib decompression error
GETTIME_ERROR-237gettimeofday failed ???
GETITIMER_ERROR-238getitimer failed ???
SIGACT_ERROR-239sigaction failed ???
SETITIMER_ERROR-240setitimer failed ???
LENGTH_ERROR-241record layer length error
PEER_KEY_ERROR -242can't decode peer key
ZERO_RETURN-243peer sent close notify
SIDE_ERROR-244wrong client/server type
NO_PEER_CERT-245peer didnt' send key
NTRU_KEY_ERROR-246NTRU key error
NTRU_DRBG_ERROR-247NTRU drbg error
NTRU_ENCRYPT_ERROR-248NTRU encrypt error
NTRU_DECRYPT_ERROR-249NTRU decrypt error
BAD_MUTEX_ERROR-256Bad mutex
UNSUPPORTED_SUITE-260unsupported cipher suite
MATCH_SUITE_ERROR-261can't match cipher suite

C.2 wolfCrypt Error Codes
wolfCrypt error codes can be found in wolfssl/wolfcrypt/error-crypt.h.

Error Code EnumError CodeError Description
OPEN_RAN_E-101opening random device error
READ_RAN_E-102reading random device error
WINCRYPT_E-103windows crypt init error
CRYPTGEN_E-104windows crypt generation error
RAN_BLOCK_E-105reading random device would block
MP_INIT_E-110mp_init error state
MP_READ_E-111mp_read error state
MP_EXPTMOD_E-112mp_expotmod error state
MP_TO_E-113mp_to_xxx error state, can't convert
MP_SUB_E-114mp_sub error state, can't subtract
MP_ADD_E-115mp_add error state, can't add
MP_MUL_E -116mp_mul error state, can't multiply
MP_MULMOD_E-117mp_mulmod error state, can't multiply mod
MP_MOD_E-118mp_mod error state, can't mod
MP_INVMOD_E-119mp_invmod error state, can't inv mod
MP_CMP_E-120mp_cmp error state
MP_ZERO_E-121got a mp zero result, not expected
MEMORY_E-125out of memory error
RSA_WRONG_TYPE_E-130RSA wrong block type for RSA function
RSA_BUFFER_E-131RSA buffer error, output too small or input too large
BUFFER_E-132output buffer too small or input too large
ALGO_ID_E-133setting algo id error
PUBLIC_KEY_E -134setting public key error
DATE_E -135setting date validity error
SUBJECT_E -136setting subject name error
ISSUER_E -137setting issuer name error
ASN_PARSE_E -140ASN parsing error, invalid input
ASN_VERSION_E -141ASN version error, invalid number
ASN_GETINT_E-142ASN get big int error, invalid input
ASN_RSA_KEY_E -143ASN key init error, invalid input
ASN_OBJECT_ID_E -144ASN object id error, invalid id
ASN_TAG_NULL_E-145ASN tag error, not null
ASN_EXPECT_0_E-146ASN expect error, not zero
ASN_BITSTR_E -147ASN bit string error, wrong id
ASN_UNKNOWN_OID_E -148ASN oid error, unknown sum id
ASN_DATE_SZ_E -149ASN date error, bad size
ASN_BEFORE_DATE_E-150ASN date error, current date before
ASN_AFTER_DATE_E-151ASN date error, current date after
ASN_SIG_OID_E -152ASN signature error, mismatched oid
ASN_TIME_E-153ASN tiem error, unknown time type
ASN_INPUT_E-154ASN input error, not enough data
ASN_SIG_CONFIRM_E-155ASN sig error, confirm failure
ASN_SIG_HASH_E-156ASN sig error, unsupported hash type
ASN_SIG_KEY_E-157ASN sig error, unsupported key type
ASN_DH_KEY_E -158ASN key init error, invalid input
ASN_NTRU_KEY_E-159ASN ntru key decode error, invalid input
BAD_FUNC_ARG-173Bad function argument provided
NOT_COMPILED_IN-174Feature not compiled in
UNICODE_SIZE_E-175Unicode password too big
NO_PASSWORD -176no password provided by user