/[anubis]/anubis/src/ssl.c
ViewVC logotype

Diff of /anubis/src/ssl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by gray, Thu Feb 6 15:47:36 2003 UTC revision 1.3 by gray, Thu Mar 6 18:33:42 2003 UTC
# Line 203  cipher_info(SSL *ssl_local) Line 203  cipher_info(SSL *ssl_local)
203    
204          if (cipher) {          if (cipher) {
205                  SSL_CIPHER_get_bits(cipher, &bits);                  SSL_CIPHER_get_bits(cipher, &bits);
206                  info(VERBOSE, _("%s connection using %s (%u bits)"),                  info(VERBOSE,
207                  SSL_CIPHER_get_version(cipher), SSL_CIPHER_get_name(cipher), bits);                       ngettext("%s connection using %s (%u bit)",
208                                  "%s connection using %s (%u bits)"
209                                  bits),
210                         SSL_CIPHER_get_version(cipher),
211                         SSL_CIPHER_get_name(cipher), bits);
212          }          }
213          cert = SSL_get_peer_certificate(ssl_local);          cert = SSL_get_peer_certificate(ssl_local);
214          if (cert == 0)          if (cert == 0)
215                  return;                  return;
216    
217          info(VERBOSE, _("Server public key is %d bits"),          bits = EVP_PKEY_bits(X509_get_pubkey(cert));
218          EVP_PKEY_bits(X509_get_pubkey(cert)));          info(VERBOSE,
219                 ngettext("Server public key is %d bit",
220                          "Server public key is %d bits", bits),
221                 bits);
222    
223          x509buf = (char *)xmalloc(X509BUFSIZE + 1);          x509buf = (char *)xmalloc(X509BUFSIZE + 1);
224    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26