OLD | NEW |
1 /* | 1 /* |
2 * This file is PRIVATE to SSL and should be the first thing included by | 2 * This file is PRIVATE to SSL and should be the first thing included by |
3 * any SSL implementation file. | 3 * any SSL implementation file. |
4 * | 4 * |
5 * This Source Code Form is subject to the terms of the Mozilla Public | 5 * This Source Code Form is subject to the terms of the Mozilla Public |
6 * License, v. 2.0. If a copy of the MPL was not distributed with this | 6 * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
8 | 8 |
9 #ifndef __sslimpl_h_ | 9 #ifndef __sslimpl_h_ |
10 #define __sslimpl_h_ | 10 #define __sslimpl_h_ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #define calg_camellia ssl_calg_camellia | 65 #define calg_camellia ssl_calg_camellia |
66 #define calg_seed ssl_calg_seed | 66 #define calg_seed ssl_calg_seed |
67 #define calg_aes_gcm ssl_calg_aes_gcm | 67 #define calg_aes_gcm ssl_calg_aes_gcm |
68 | 68 |
69 #define mac_null ssl_mac_null | 69 #define mac_null ssl_mac_null |
70 #define mac_md5 ssl_mac_md5 | 70 #define mac_md5 ssl_mac_md5 |
71 #define mac_sha ssl_mac_sha | 71 #define mac_sha ssl_mac_sha |
72 #define hmac_md5 ssl_hmac_md5 | 72 #define hmac_md5 ssl_hmac_md5 |
73 #define hmac_sha ssl_hmac_sha | 73 #define hmac_sha ssl_hmac_sha |
74 #define hmac_sha256 ssl_hmac_sha256 | 74 #define hmac_sha256 ssl_hmac_sha256 |
| 75 #define mac_aead ssl_mac_aead |
75 | 76 |
76 #define SET_ERROR_CODE /* reminder */ | 77 #define SET_ERROR_CODE /* reminder */ |
77 #define SEND_ALERT /* reminder */ | 78 #define SEND_ALERT /* reminder */ |
78 #define TEST_FOR_FAILURE /* reminder */ | 79 #define TEST_FOR_FAILURE /* reminder */ |
79 #define DEAL_WITH_FAILURE /* reminder */ | 80 #define DEAL_WITH_FAILURE /* reminder */ |
80 | 81 |
81 #if defined(DEBUG) || defined(TRACE) | 82 #if defined(DEBUG) || defined(TRACE) |
82 #ifdef __cplusplus | 83 #ifdef __cplusplus |
83 #define Debug 1 | 84 #define Debug 1 |
84 #else | 85 #else |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 const unsigned char *in, | 527 const unsigned char *in, |
527 int inlen); | 528 int inlen); |
528 typedef SECStatus (*SSLAEADCipher)( | 529 typedef SECStatus (*SSLAEADCipher)( |
529 ssl3KeyMaterial * keys, | 530 ssl3KeyMaterial * keys, |
530 PRBool doDecrypt, | 531 PRBool doDecrypt, |
531 unsigned char * out, | 532 unsigned char * out, |
532 int * outlen, | 533 int * outlen, |
533 int maxout, | 534 int maxout, |
534 const unsigned char *in, | 535 const unsigned char *in, |
535 int inlen, | 536 int inlen, |
536 » » » SSL3ContentType type, | 537 » » » const unsigned char *additionalData, |
537 » » » SSL3ProtocolVersion version, | 538 » » » int additionalDataLen); |
538 » » » SSL3SequenceNumber seqnum); | |
539 typedef SECStatus (*SSLCompressor)(void * context, | 539 typedef SECStatus (*SSLCompressor)(void * context, |
540 unsigned char * out, | 540 unsigned char * out, |
541 int * outlen, | 541 int * outlen, |
542 int maxout, | 542 int maxout, |
543 const unsigned char *in, | 543 const unsigned char *in, |
544 int inlen); | 544 int inlen); |
545 typedef SECStatus (*SSLDestroy)(void *context, PRBool freeit); | 545 typedef SECStatus (*SSLDestroy)(void *context, PRBool freeit); |
546 | 546 |
547 /* The DTLS anti-replay window. Defined here because we need it in | 547 /* The DTLS anti-replay window. Defined here because we need it in |
548 * the cipher spec. Note that this is a ring buffer but left and | 548 * the cipher spec. Note that this is a ring buffer but left and |
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1932 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) | 1932 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) |
1933 #define SSL_GETPID getpid | 1933 #define SSL_GETPID getpid |
1934 #elif defined(WIN32) | 1934 #elif defined(WIN32) |
1935 extern int __cdecl _getpid(void); | 1935 extern int __cdecl _getpid(void); |
1936 #define SSL_GETPID _getpid | 1936 #define SSL_GETPID _getpid |
1937 #else | 1937 #else |
1938 #define SSL_GETPID() 0 | 1938 #define SSL_GETPID() 0 |
1939 #endif | 1939 #endif |
1940 | 1940 |
1941 #endif /* __sslimpl_h_ */ | 1941 #endif /* __sslimpl_h_ */ |
OLD | NEW |