Topic: SendClientKeyExchange fail
here is source code ,who know why?
wolfSSL_Init();
client->data.ctx = SSL_CTX_new(wolfSSLv3_client_method());
if (wolfSSL_CTX_set_cipher_list(client->data.ctx, cipherList) != SSL_SUCCESS)
{
uart_printf( "set cipher error" );
}
base64decode( host_root_ca_buffer , &lengh , lock_rev_buffer);
ret = wolfSSL_CTX_use_certificate_buffer(client->data.ctx,lock_rev_buffer, lengh, SSL_FILETYPE_PEM);
base64decode( host_root_key_buffer , &lengh , lock_rev_buffer);
ret = wolfSSL_CTX_use_PrivateKey_buffer(client->data.ctx,lock_rev_buffer, lengh , SSL_FILETYPE_PEM );
client->data.ssl = SSL_new(client->data.ctx);
client->data.bio = wolfSSL_BIO_new_socket((int)client->connection,0);
wolfSSL_set_bio(client->data.ssl, client->data.bio, client->data.bio);
wolfSSL_CTX_set_verify(client->data.ctx, SSL_VERIFY_NONE, 0);
SSL_set_connect_state(client->data.ssl);
///// wolfSSL_set_group_messages(client->data.ssl);
// client_ssl_handshake(client->data.ssl);
if (wolfSSL_negotiate(client->data.ssl) != SSL_SUCCESS)
{
BIO_free(client->data.bio);
SSL_CTX_free(client->data.ctx);
SSL_free(client->data.ssl);
return LOCKDOWN_STATUS_START_SESSION_FAILED;
}