Index: openssl/ssl/ssl_cert.c |
diff --git a/openssl/ssl/ssl_cert.c b/openssl/ssl/ssl_cert.c |
index 5123a89182e590267edcb5b382ab5a767128fb85..e32153167f94ecb22bf7f1eb7e1d60d70b29fbf7 100644 |
--- a/openssl/ssl/ssl_cert.c |
+++ b/openssl/ssl/ssl_cert.c |
@@ -660,6 +660,22 @@ static int xname_cmp(const X509_NAME * const *a, const X509_NAME * const *b) |
return(X509_NAME_cmp(*a,*b)); |
} |
+void SSL_get_client_certificate_types(SSL *s, char **ctype, size_t *ctype_num) |
+ { |
+ /* Nothing to return for the server or SSL2. */ |
+ if (s->server || |
+ (s->version < SSL3_VERSION && s->version != DTLS1_BAD_VER) || |
+ s->s3 == NULL) |
wtc
2014/04/25 17:59:59
I would match the code in SSL_get_client_CA_list:
davidben
2014/05/02 22:42:02
There's not really anything to implement on the se
wtc
2014/05/06 17:10:08
I see. The function prototype of SSL_get_client_ce
davidben
2014/05/06 21:54:01
Oh, yeah, we could do that and just call the funct
wtc
2014/05/06 23:49:45
I agree SSL_get_client_certificate_types doesn't s
|
+ { |
+ *ctype = NULL; |
+ *ctype_num = 0; |
+ return; |
+ } |
+ |
+ *ctype = s->s3->tmp.ctype; |
+ *ctype_num = s->s3->tmp.ctype_num; |
+ } |
+ |
#ifndef OPENSSL_NO_STDIO |
/*! |
* Load CA certs from a file into a ::STACK. Note that it is somewhat misnamed; |