Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: openssl/ssl/ssl_cert.c

Issue 254723002: Add SSL_get_client_certificate_types. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl
Patch Set: whitespace Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: openssl/ssl/ssl_cert.c
diff --git a/openssl/ssl/ssl_cert.c b/openssl/ssl/ssl_cert.c
index 5123a89182e590267edcb5b382ab5a767128fb85..19b8f78f010eccaa650d6c018221173e21141ddc 100644
--- a/openssl/ssl/ssl_cert.c
+++ b/openssl/ssl/ssl_cert.c
@@ -660,6 +660,20 @@ 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(const SSL *s, const char **ctype, size_t *ctype_num)
wtc 2014/05/06 17:10:08 1. Nit: this line may need to be folded. 2. Nit:
davidben 2014/05/06 21:54:02 Done.
+ {
+ 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;
+ }
+
#ifndef OPENSSL_NO_STDIO
/*!
* Load CA certs from a file into a ::STACK. Note that it is somewhat misnamed;

Powered by Google App Engine
This is Rietveld 408576698