diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2005-06-07 04:14:59 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2005-06-07 04:14:59 +0000 |
commit | 125167ce170bc64dfd57dd664a3bdde3580230c7 (patch) | |
tree | 2c6b97c0946a681c9c1031038e89d298a645c754 /contrib/sendmail/src/tls.c | |
parent | 476228659f3f241ba8be1db8703b14c5f443082a (diff) | |
download | FreeBSD-src-125167ce170bc64dfd57dd664a3bdde3580230c7.zip FreeBSD-src-125167ce170bc64dfd57dd664a3bdde3580230c7.tar.gz |
Import sendmail 8.13.4
Diffstat (limited to 'contrib/sendmail/src/tls.c')
-rw-r--r-- | contrib/sendmail/src/tls.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/sendmail/src/tls.c b/contrib/sendmail/src/tls.c index 1867097..3b915cb 100644 --- a/contrib/sendmail/src/tls.c +++ b/contrib/sendmail/src/tls.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2004 Sendmail, Inc. and its suppliers. + * Copyright (c) 2000-2005 Sendmail, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set @@ -10,7 +10,7 @@ #include <sendmail.h> -SM_RCSID("@(#)$Id: tls.c,v 8.96 2004/08/04 21:17:58 ca Exp $") +SM_RCSID("@(#)$Id: tls.c,v 8.97 2005/03/08 22:20:52 ca Exp $") #if STARTTLS # include <openssl/err.h> @@ -1155,7 +1155,8 @@ tls_get_info(ssl, srv, host, mac, certreq) NID_commonName, buf, sizeof buf); macdefine(mac, A_TEMP, macid("{cn_issuer}"), xtextify(buf, "<>\")")); - if (X509_digest(cert, EVP_md5(), md, &n)) + n = 0; + if (X509_digest(cert, EVP_md5(), md, &n) != 0 && n > 0) { char md5h[EVP_MAX_MD_SIZE * 3]; static const char hexcodes[] = "0123456789ABCDEF"; |