Do not define tls_engine_get_cert() if OpenSSL engine is disabled
This commit is contained in:
parent
1b52ea47e4
commit
e572cb6398
1 changed files with 2 additions and 4 deletions
|
@ -1512,11 +1512,11 @@ static int tls_read_pkcs12_blob(SSL_CTX *ssl_ctx, SSL *ssl,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_ENGINE
|
||||||
static int tls_engine_get_cert(struct tls_connection *conn,
|
static int tls_engine_get_cert(struct tls_connection *conn,
|
||||||
const char *cert_id,
|
const char *cert_id,
|
||||||
X509 **cert)
|
X509 **cert)
|
||||||
{
|
{
|
||||||
#ifndef OPENSSL_NO_ENGINE
|
|
||||||
/* this runs after the private key is loaded so no PIN is required */
|
/* this runs after the private key is loaded so no PIN is required */
|
||||||
struct {
|
struct {
|
||||||
const char *cert_id;
|
const char *cert_id;
|
||||||
|
@ -1539,10 +1539,8 @@ static int tls_engine_get_cert(struct tls_connection *conn,
|
||||||
}
|
}
|
||||||
*cert = params.cert;
|
*cert = params.cert;
|
||||||
return 0;
|
return 0;
|
||||||
#else /* OPENSSL_NO_ENGINE */
|
|
||||||
return -1;
|
|
||||||
#endif /* OPENSSL_NO_ENGINE */
|
|
||||||
}
|
}
|
||||||
|
#endif /* OPENSSL_NO_ENGINE */
|
||||||
|
|
||||||
|
|
||||||
static int tls_connection_engine_client_cert(struct tls_connection *conn,
|
static int tls_connection_engine_client_cert(struct tls_connection *conn,
|
||||||
|
|
Loading…
Reference in a new issue