diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-11-13 15:43:04 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-11-13 15:49:30 +0100 |
commit | d2b24612879ba62bd8cab83df43f3a87f202c3a8 (patch) | |
tree | 14cada33f417ef42a2249640b89b355afc7efadb | |
parent | c5fc19fe41eb69ea8ab52ed2cada3991ed5a8e39 (diff) | |
download | gnutls-d2b24612879ba62bd8cab83df43f3a87f202c3a8.tar.gz |
doc update and gnutls_ocsp_resp_get_responder() will always initialized output data
-rw-r--r-- | lib/x509/ocsp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/x509/ocsp.c b/lib/x509/ocsp.c index d71ed6e211..5a5b60267b 100644 --- a/lib/x509/ocsp.c +++ b/lib/x509/ocsp.c @@ -1115,7 +1115,7 @@ int gnutls_ocsp_resp_get_version(gnutls_ocsp_resp_t resp) * will be ASCII or UTF-8 encoded, depending on the certificate data. * * If the responder ID is not a name but a hash, this function - * will return a @dn that has %NULL data. + * will return %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE. * * The caller needs to deallocate memory by calling gnutls_free() on * @dn->data. @@ -1135,6 +1135,9 @@ gnutls_ocsp_resp_get_responder(gnutls_ocsp_resp_t resp, return GNUTLS_E_INVALID_REQUEST; } + dn->data = NULL; + dn->size = 0; + ret = _gnutls_x509_parse_dn (resp->basicresp, "tbsResponseData.responderID.byName", NULL, &l); |