From: Nikos Mavrogiannopoulos Date: Mon, 26 Aug 2002 10:21:45 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls_0_5_4~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3003beff322752ca4bd67d0122dbcb392fc42b2b;p=thirdparty%2Fgnutls.git *** empty log message *** --- diff --git a/lib/auth_rsa_export.c b/lib/auth_rsa_export.c index f181dbedb3..69ce1dcf94 100644 --- a/lib/auth_rsa_export.c +++ b/lib/auth_rsa_export.c @@ -222,6 +222,11 @@ CERTIFICATE_AUTH_INFO info = _gnutls_get_auth_info( state); return 0; } + if (peer_cert.subject_pk_algorithm != GNUTLS_PK_RSA) { + gnutls_assert(); + return 0; + } + if ( _gnutls_mpi_get_nbits( peer_cert.params[0]) <= 512) { _gnutls_free_cert( peer_cert);