我将wolfssl移植到Liteos,运行时出现错误:
wolfSSL error occurred, error = 111 line:11221 file:src/ssl.cerror = -111,mp_read错误状态
我跟踪底层代码以找到错误的位置:
case FIRST_REPLY_FIRST :
#ifdef WOLFSSL_TLS13
printf("into WOLFSSL_TLS13 ..\n");
if (ssl->options.tls1_3)
return wolfSSL_connect_TLSv13(ssl);
#endif
if (!ssl->options.resuming) {
if ( (ssl->error = SendClientKeyExchange(ssl)) != 0) {
WOLFSSL_ERROR(ssl->error); //Error occurred !!
return WOLFSSL_FATAL_ERROR;
}
WOLFSSL_MSG("sent: client key exchange");
}
ssl->options.connectState = FIRST_REPLY_SECOND;
WOLFSSL_MSG("connect state: FIRST_REPLY_SECOND");
FALL_THROUGH;wolfssl版本是4.2.0-稳定的
我也不知道原因
发布于 2019-12-26 22:44:51
公钥操作失败的最常见原因是堆栈和/或堆的设置不够高。wolfSSL Porting Guide中有一个关于内存要求的部分。你能仔细检查你的项目中的可用内存吗?
https://stackoverflow.com/questions/58966787
复制相似问题