Change-Id: If1ef2d4bc6f90a4d4b6a345c63723117834c6504
Signed-off-by: Ping Yu <ping.yu@intel.com>
clib_warning ("unable to parse certificate");
return -1;
}
clib_warning ("unable to parse certificate");
return -1;
}
+ SSL_CTX_use_certificate (oc->ssl_ctx, oc->srvcert);
BIO_free (cert_bio);
cert_bio = BIO_new (BIO_s_mem ());
BIO_write (cert_bio, app->tls_key, vec_len (app->tls_key));
BIO_free (cert_bio);
cert_bio = BIO_new (BIO_s_mem ());
BIO_write (cert_bio, app->tls_key, vec_len (app->tls_key));
+ SSL_CTX_use_PrivateKey (oc->ssl_ctx, oc->pkey);
BIO_free (cert_bio);
oc->ssl = SSL_new (oc->ssl_ctx);
BIO_free (cert_bio);
oc->ssl = SSL_new (oc->ssl_ctx);