summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/openssl/openssl/ssl/ssl_cert.c
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/openssl/openssl/ssl/ssl_cert.c')
-rw-r--r--chromium/third_party/openssl/openssl/ssl/ssl_cert.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/chromium/third_party/openssl/openssl/ssl/ssl_cert.c b/chromium/third_party/openssl/openssl/ssl/ssl_cert.c
index 5123a89182e..8a61650c521 100644
--- a/chromium/third_party/openssl/openssl/ssl/ssl_cert.c
+++ b/chromium/third_party/openssl/openssl/ssl/ssl_cert.c
@@ -655,6 +655,21 @@ int SSL_CTX_add_client_CA(SSL_CTX *ctx,X509 *x)
return(add_client_CA(&(ctx->client_CA),x));
}
+void SSL_get_client_certificate_types(const SSL *s, const unsigned char **ctype,
+ size_t *ctype_num)
+ {
+ if (s->s3 == NULL)
+ {
+ *ctype = NULL;
+ *ctype_num = 0;
+ return;
+ }
+
+ /* This always returns nothing for the server. */
+ *ctype = s->s3->tmp.ctype;
+ *ctype_num = s->s3->tmp.ctype_num;
+ }
+
static int xname_cmp(const X509_NAME * const *a, const X509_NAME * const *b)
{
return(X509_NAME_cmp(*a,*b));