diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-07-01 22:10:04 +0300 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-07-29 20:59:36 +0200 |
commit | 9cc74f3e645c16f878260879a6983394bfa45357 (patch) | |
tree | ce4f8cc91e5592deab038473609f89cf8cdc6a9a | |
parent | 4f34926d95961cf2cdb3b30feaa2565ee65c45b4 (diff) | |
download | gnutls-9cc74f3e645c16f878260879a6983394bfa45357.tar.gz |
Corrected gnutls_certificate_client_get_request_status(). Based on observation by Peter Hendrickson <pdh@wiredyne.com>.
-rw-r--r-- | lib/auth_cert.h | 4 | ||||
-rw-r--r-- | lib/gnutls_ui.c | 9 |
2 files changed, 1 insertions, 12 deletions
diff --git a/lib/auth_cert.h b/lib/auth_cert.h index 5258e2be76..1b808dcfb6 100644 --- a/lib/auth_cert.h +++ b/lib/auth_cert.h @@ -105,10 +105,6 @@ typedef struct rsa_info_st */ typedef struct cert_auth_info_st { - int certificate_requested; /* if the peer requested certificate - * this is non zero; - */ - /* These (dh/rsa) are just copies from the credentials_t structure. * They must be freed. */ diff --git a/lib/gnutls_ui.c b/lib/gnutls_ui.c index cedf1a0d47..d0a6d00809 100644 --- a/lib/gnutls_ui.c +++ b/lib/gnutls_ui.c @@ -513,14 +513,7 @@ gnutls_certificate_get_peers (gnutls_session_t int gnutls_certificate_client_get_request_status (gnutls_session_t session) { - cert_auth_info_t info; - - CHECK_AUTH (GNUTLS_CRD_CERTIFICATE, 0); - - info = _gnutls_get_auth_info (session); - if (info == NULL) - return GNUTLS_E_INTERNAL_ERROR; - return info->certificate_requested; + return session->key->certificate_requested; } /** |