summaryrefslogtreecommitdiffstats
path: root/nsscommon.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-03-30 15:41:31 -0400
committerDave Brolley <brolley@redhat.com>2009-03-30 15:41:31 -0400
commit8f2b14197e7db279434c5b063b755d1121c137de (patch)
treee6d335d41fbe085fccac277a5565dd089267db32 /nsscommon.c
parent4407fecb4b4e7466b256a26d1bfd63333bf367a2 (diff)
parent267a544424be10825c57ea3eaa4d908c818211c7 (diff)
downloadsystemtap-steved-8f2b14197e7db279434c5b063b755d1121c137de.tar.gz
systemtap-steved-8f2b14197e7db279434c5b063b755d1121c137de.tar.xz
systemtap-steved-8f2b14197e7db279434c5b063b755d1121c137de.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: aclocal.m4 configure testsuite/aclocal.m4 Also: 2009-03-30 Dave Brolley <brolley@redhat.com> * nsscommon.c (nssError): Handle SEC_ERROR_BAD_SIGNATURE. 2009-03-30 Dave Brolley <brolley@redhat.com> * modverify.c (verify_it): Print a message if the module may have been tampered with.
Diffstat (limited to 'nsscommon.c')
-rw-r--r--nsscommon.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/nsscommon.c b/nsscommon.c
index 1837969f..0a90b963 100644
--- a/nsscommon.c
+++ b/nsscommon.c
@@ -53,20 +53,23 @@ nssError (void)
/* Otherwise handle common errors ourselves. */
switch (errorNumber)
{
- case SEC_ERROR_CA_CERT_INVALID:
- fputs ("The issuer's certificate is invalid.\n", stderr);
+ case PR_CONNECT_RESET_ERROR:
+ fputs ("Connection reset by peer.\n", stderr);
break;
case SEC_ERROR_BAD_DATABASE:
fputs ("The specified certificate database does not exist or is not valid.\n", stderr);
break;
+ case SEC_ERROR_BAD_SIGNATURE:
+ fputs ("Certificate does not match the signature.\n", stderr);
+ break;
+ case SEC_ERROR_CA_CERT_INVALID:
+ fputs ("The issuer's certificate is invalid.\n", stderr);
+ break;
case SSL_ERROR_BAD_CERT_DOMAIN:
fputs ("The requested domain name does not match the server's certificate.\n", stderr);
break;
- case PR_CONNECT_RESET_ERROR:
- fputs ("Connection reset by peer.\n", stderr);
- break;
default:
- fputs ("Unknown NSS error.\n", stderr);
+ fprintf (stderr, "Unknown NSS error: %d.\n", errorNumber);
break;
}
}