OLD | NEW |
1 /* | 1 /* |
2 * This file contains prototypes for the public SSL functions. | 2 * This file contains prototypes for the public SSL functions. |
3 * | 3 * |
4 * ***** BEGIN LICENSE BLOCK ***** | 4 * ***** BEGIN LICENSE BLOCK ***** |
5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 5 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
6 * | 6 * |
7 * The contents of this file are subject to the Mozilla Public License Version | 7 * The contents of this file are subject to the Mozilla Public License Version |
8 * 1.1 (the "License"); you may not use this file except in compliance with | 8 * 1.1 (the "License"); you may not use this file except in compliance with |
9 * the License. You may obtain a copy of the License at | 9 * the License. You may obtain a copy of the License at |
10 * http://www.mozilla.org/MPL/ | 10 * http://www.mozilla.org/MPL/ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 SSL_IMPORT SECStatus SSL_EnableDefault(int option, PRBool on); | 128 SSL_IMPORT SECStatus SSL_EnableDefault(int option, PRBool on); |
129 #endif | 129 #endif |
130 | 130 |
131 /* New function names */ | 131 /* New function names */ |
132 SSL_IMPORT SECStatus SSL_OptionSet(PRFileDesc *fd, PRInt32 option, PRBool on); | 132 SSL_IMPORT SECStatus SSL_OptionSet(PRFileDesc *fd, PRInt32 option, PRBool on); |
133 SSL_IMPORT SECStatus SSL_OptionGet(PRFileDesc *fd, PRInt32 option, PRBool *on); | 133 SSL_IMPORT SECStatus SSL_OptionGet(PRFileDesc *fd, PRInt32 option, PRBool *on); |
134 SSL_IMPORT SECStatus SSL_OptionSetDefault(PRInt32 option, PRBool on); | 134 SSL_IMPORT SECStatus SSL_OptionSetDefault(PRInt32 option, PRBool on); |
135 SSL_IMPORT SECStatus SSL_OptionGetDefault(PRInt32 option, PRBool *on); | 135 SSL_IMPORT SECStatus SSL_OptionGetDefault(PRInt32 option, PRBool *on); |
136 SSL_IMPORT SECStatus SSL_CertDBHandleSet(PRFileDesc *fd, CERTCertDBHandle *dbHan
dle); | 136 SSL_IMPORT SECStatus SSL_CertDBHandleSet(PRFileDesc *fd, CERTCertDBHandle *dbHan
dle); |
137 | 137 |
| 138 SSL_IMPORT SECStatus SSL_SetNextProtoNego(PRFileDesc *fd, |
| 139 const unsigned char *data, |
| 140 unsigned short length); |
| 141 SSL_IMPORT SECStatus SSL_GetNextProto(PRFileDesc *fd, |
| 142 int *state, |
| 143 unsigned char *buf, |
| 144 unsigned *length, |
| 145 unsigned buf_len); |
| 146 #define SSL_NEXT_PROTO_NO_SUPPORT 0 /* No peer support */ |
| 147 #define SSL_NEXT_PROTO_NEGOTIATED 1 /* Mutual agreement */ |
| 148 #define SSL_NEXT_PROTO_NO_OVERLAP 2 /* No protocol overlap found */ |
| 149 |
138 /* | 150 /* |
139 ** Control ciphers that SSL uses. If on is non-zero then the named cipher | 151 ** Control ciphers that SSL uses. If on is non-zero then the named cipher |
140 ** is enabled, otherwise it is disabled. | 152 ** is enabled, otherwise it is disabled. |
141 ** The "cipher" values are defined in sslproto.h (the SSL_EN_* values). | 153 ** The "cipher" values are defined in sslproto.h (the SSL_EN_* values). |
142 ** EnableCipher records user preferences. | 154 ** EnableCipher records user preferences. |
143 ** SetPolicy sets the policy according to the policy module. | 155 ** SetPolicy sets the policy according to the policy module. |
144 */ | 156 */ |
145 #ifdef SSL_DEPRECATED_FUNCTION | 157 #ifdef SSL_DEPRECATED_FUNCTION |
146 /* Old deprecated function names */ | 158 /* Old deprecated function names */ |
147 SSL_IMPORT SECStatus SSL_EnableCipher(long which, PRBool enabled); | 159 SSL_IMPORT SECStatus SSL_EnableCipher(long which, PRBool enabled); |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 532 |
521 SSL_IMPORT SECStatus SSL_CanBypass(CERTCertificate *cert, | 533 SSL_IMPORT SECStatus SSL_CanBypass(CERTCertificate *cert, |
522 SECKEYPrivateKey *privKey, | 534 SECKEYPrivateKey *privKey, |
523 PRUint32 protocolmask, | 535 PRUint32 protocolmask, |
524 PRUint16 *ciphers, int nciphers, | 536 PRUint16 *ciphers, int nciphers, |
525 PRBool *pcanbypass, void *pwArg); | 537 PRBool *pcanbypass, void *pwArg); |
526 | 538 |
527 SEC_END_PROTOS | 539 SEC_END_PROTOS |
528 | 540 |
529 #endif /* __ssl_h_ */ | 541 #endif /* __ssl_h_ */ |
OLD | NEW |