home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / security / freenav / secstubt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  59 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 _SECSTUBT_H_
  18. #define _SECSTUBT_H_
  19.  
  20. typedef struct _item {
  21.     unsigned char *data;
  22.     unsigned long len;
  23. } SECItem;
  24.  
  25. struct CERTCertificateStr {
  26.     SECItem derCert;
  27. };
  28.  
  29. typedef struct CERTCertificateStr CERTCertificate;
  30. typedef struct _certdb CERTCertDBHandle;
  31. typedef struct _md5context MD5Context;
  32. typedef struct _sha1context SHA1Context;
  33.  
  34. #define MD5_LENGTH    16
  35. #define SHA1_LENGTH    20
  36.  
  37. typedef enum _SECStatus {
  38.     SECWouldBlock = -2,
  39.     SECFailure = -1,
  40.     SECSuccess = 0
  41. } SECStatus;
  42.  
  43. #define SSL_SECURITY_STATUS_NOOPT -1
  44. #define SSL_SECURITY_STATUS_OFF           0
  45. #define SSL_SECURITY_STATUS_ON_HIGH       1
  46. #define SSL_SECURITY_STATUS_ON_LOW        2
  47. #define SSL_SECURITY_STATUS_FORTEZZA      3
  48.  
  49. #define SSL_SC_RSA              0x00000001L
  50. #define SSL_SC_MD2              0x00000010L
  51. #define SSL_SC_MD5              0x00000020L
  52. #define SSL_SC_RC2_CBC          0x00001000L
  53. #define SSL_SC_RC4              0x00002000L
  54. #define SSL_SC_DES_CBC          0x00004000L
  55. #define SSL_SC_DES_EDE3_CBC     0x00008000L
  56. #define SSL_SC_IDEA_CBC         0x00010000L
  57.  
  58. #endif /* _SECSTUBT_H_ */
  59.