home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / security / freenav / sslerr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.1 KB  |  34 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public License
  3.  * Version 1.0 (the "NPL"); you may not use this file except in
  4.  * compliance with the NPL.  You may obtain a copy of the NPL at
  5.  * http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  8.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  9.  * for the specific language governing rights and limitations under the
  10.  * NPL.
  11.  *
  12.  * The Initial Developer of this code under the NPL is Netscape
  13.  * Communications Corporation.  Portions created by Netscape are
  14.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  15.  * Reserved.
  16.  */
  17. #ifndef __SSL_ERR_H_
  18. #define __SSL_ERR_H_
  19.  
  20.  
  21. #define SSL_ERROR_BASE                (-0x3000)
  22. #define SSL_ERROR_LIMIT                (SSL_ERROR_BASE + 1000)
  23.  
  24. #ifndef NO_SECURITY_ERROR_ENUM
  25. typedef enum {
  26.     SSL_ERROR_BAD_CERTIFICATE =    SSL_ERROR_BASE + 4
  27. } SSLErrorCodes;
  28. #endif
  29.  
  30. #define IS_SSL_ERROR(code) \
  31.     (((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT))
  32.  
  33. #endif /* __SSL_ERR_H_ */
  34.