summaryrefslogtreecommitdiffstats
path: root/stapsslerr.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-14 17:47:47 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-14 17:47:47 -0400
commite5a8ad2038080ee6de2cd9c81c189bb5f6b9e59a (patch)
tree6f1ef8d9843c8f7371b17f219efb46b267613a58 /stapsslerr.h
parent739cf6877b9bd84b0aba47f5c4c205a9dd63a93d (diff)
downloadsystemtap-steved-e5a8ad2038080ee6de2cd9c81c189bb5f6b9e59a.tar.gz
systemtap-steved-e5a8ad2038080ee6de2cd9c81c189bb5f6b9e59a.tar.xz
systemtap-steved-e5a8ad2038080ee6de2cd9c81c189bb5f6b9e59a.zip
PR10331: more ssl error text
* stapsslerr.h: Added a few blurbs from mozilla sources. Added mozilla copyright/license header block, which lets us use this under GPLv2.
Diffstat (limited to 'stapsslerr.h')
-rw-r--r--stapsslerr.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/stapsslerr.h b/stapsslerr.h
index f7e17838..fd989b28 100644
--- a/stapsslerr.h
+++ b/stapsslerr.h
@@ -1,4 +1,40 @@
/* scraped from http://www.mozilla.org/projects/security/pki/nss/ref/ssl/sslerr.html */
+/* and mozilla security/manager/locales/en-US/chrome/pipnss/nsserrors.properties */
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is the Netscape security libraries.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by the Initial Developer are Copyright (C) 1994-2000
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ * ***** END LICENSE BLOCK ***** */
+/* For systemtap's purposes, GPLv2 is the winning license. */
NSSYERROR(SSL_ERROR_EXPORT_ONLY_SERVER,"Unable to communicate securely. Peer does not support high-grade encryption.");
NSSYERROR(SSL_ERROR_US_ONLY_SERVER,"Unable to communicate securely. Peer requires high-grade encryption which is not supported.");
@@ -100,6 +136,12 @@ NSSYERROR(SSL_ERROR_IV_PARAM_FAILURE,"PKCS11 code failed to translate an IV into
NSSYERROR(SSL_ERROR_INIT_CIPHER_SUITE_FAILURE,"Failed to initialize the selected cipher suite.");
NSSYERROR(SSL_ERROR_SOCKET_WRITE_FAILURE,"Attempt to write encrypted data to underlying socket failed.");
NSSYERROR(SSL_ERROR_SESSION_KEY_GEN_FAILURE,"Failed to generate session keys for SSL session.");
+NSSYERROR(SSL_ERROR_SERVER_CACHE_NOT_CONFIGURED,"SSL server cache not configured and not disabled for this socket.");
+NSSYERROR(SSL_ERROR_UNSUPPORTED_EXTENSION_ALERT,"SSL peer does not support requested TLS hello extension.");
+NSSYERROR(SSL_ERROR_CERTIFICATE_UNOBTAINABLE_ALERT,"SSL peer could not obtain your certificate from the supplied URL.");
+NSSYERROR(SSL_ERROR_UNRECOGNIZED_NAME_ALERT,"SSL peer has no certificate for the requested DNS name.");
+NSSYERROR(SSL_ERROR_BAD_CERT_STATUS_RESPONSE_ALERT,"SSL peer was unable to get an OCSP response for its certificate.");
+NSSYERROR(SSL_ERROR_BAD_CERT_HASH_VALUE_ALERT,"SSL peer reported bad certificate hash value.");
NSSYERROR(SEC_ERROR_IO,"An I / O error occurred during authentication) or an error occurred during crypto operation (other than signature verification).");
NSSYERROR(SEC_ERROR_LIBRARY_FAILURE,"Security library failure.");
NSSYERROR(SEC_ERROR_BAD_DATA,"Security library: received bad data.");