It appears to me that the MbedTLS error codes are not being properly stored in the esp_tls_error_handle_t struct. I am doing some testing with expired X509 certs. When I try to connect to a URL I correctly get a
* SSL Error codes 00060 */ 00061 #define MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE -0x7080 /**< The requested feature is not available. */ 00062 #define MBEDTLS_ERR_SSL_BAD_INPUT_DATA -0x7100 /**< Bad input parameters to function. */ 00063...
And a quick note on mbed tls error codes: MBEDTLS_ERR_X509_INVALID_FORMAT -0x2180- This is the error which my above comment fixes. MBEDTLS_ERR_X509_CERT_UNKNOWN_FORMAT -0x2780- This probably means that your PEM certificate data is formatted improperly. Check your line-breaks! And yes, yo...
Last point, the declaration of the function pointer mbedtls_test_hook_error_add() has to be moved out of error.c as we will need it in tf-psa-crypto. Not sure where though. Addition of error codes is going away (no issue for that yet, but: general plan of which we'll only do ...
* ECP error codes */ #define MBEDTLS_ERR_ECP_BAD_INPUT_DATA -0x4F80 /**< Bad input parameters to function. */ #define MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL -0x4F00 /**< The buffer is too small to write to. */ #define MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE -0x4E80 /**< The requested...
/** * \name X509 Error codes * \{ */ #define MBEDTLS_ERR_X509_FEATURE_UNAVAILABLE -0x2080 /**< Unavailable feature, e.g. RSA hashing/encryption combination. */ #define MBEDTLS_ERR_X509_UNKNOWN_OID -0x2100 /**< Requested OID is unknown. */ #define MBEDTLS_ERR_X509_INVALID_FORMAT -...
I have never seen any of the error codesmbedtls_platform_entropy_poll()can return. Thembedtls_hardclock_poll()I dont understand. In addition, you should check whether you have explicit calls tombedtls_entropy_add_source(). there are none. ...
说明Docker并没有老老实实走外部代理。于是我尝试使用Docker使用代理以便于解决问题。当然这一步的前提也...
MBEDTLS_SSL_DEBUG_MSG( 3, ( "update timeout value to %d millisecs", 00136 ssl->handshake->retransmit_timeout ) ); 00137 } 00138 #endif /* MBEDTLS_SSL_PROTO_DTLS */ 00139 00140 #if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH) 00141 /* 00142 * Convert max_fragment_length codes to length...
* ECP error codes */ /** Bad input parameters to function. */ #define MBEDTLS_ERR_ECP_BAD_INPUT_DATA -0x4F80 /** The buffer is too small to write to. */ #define MBEDTLS_ERR_ECP_BUFFER_TOO_SMALL -0x4F00 /** The requested feature is not available, for example,...