X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fssl_lib.c;h=12a0448fe26c55920e4369619888748d9e6ba3a5;hp=679894cb3db15328c03b0d89a2cae9bbc652b32a;hb=579d553464604832911c1eb08d014f487e54e0ff;hpb=71fa3bc5ece9121d1aa9bb513b5641e9ea605e14 diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 679894cb3d..12a0448fe2 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -526,6 +526,12 @@ int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm) return X509_VERIFY_PARAM_set1(ssl->param, vpm); } +void SSL_certs_clear(SSL *s) + { + if (s->cert) + ssl_cert_clear_certs(s->cert); + } + void SSL_free(SSL *s) { int i; @@ -2037,6 +2043,16 @@ void SSL_CTX_set_verify_depth(SSL_CTX *ctx,int depth) X509_VERIFY_PARAM_set_depth(ctx->param, depth); } +void SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb)(SSL *ssl, void *arg), void *arg) + { + ssl_cert_set_cert_cb(c->cert, cb, arg); + } + +void SSL_set_cert_cb(SSL *s, int (*cb)(SSL *ssl, void *arg), void *arg) + { + ssl_cert_set_cert_cb(s->cert, cb, arg); + } + void ssl_set_cert_masks(CERT *c, const SSL_CIPHER *cipher) { CERT_PKEY *cpk;