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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 SSL_IMPORT SECStatus SSL_GetChannelInfo(PRFileDesc *fd, SSLChannelInfo *info, | 681 SSL_IMPORT SECStatus SSL_GetChannelInfo(PRFileDesc *fd, SSLChannelInfo *info, |
682 PRUintn len); | 682 PRUintn len); |
683 SSL_IMPORT SECStatus SSL_GetCipherSuiteInfo(PRUint16 cipherSuite, | 683 SSL_IMPORT SECStatus SSL_GetCipherSuiteInfo(PRUint16 cipherSuite, |
684 SSLCipherSuiteInfo *info, PRUintn len); | 684 SSLCipherSuiteInfo *info, PRUintn len); |
685 | 685 |
686 /* Returnes negotiated through SNI host info. */ | 686 /* Returnes negotiated through SNI host info. */ |
687 SSL_IMPORT SECItem *SSL_GetNegotiatedHostInfo(PRFileDesc *fd); | 687 SSL_IMPORT SECItem *SSL_GetNegotiatedHostInfo(PRFileDesc *fd); |
688 | 688 |
689 /* Export keying material according to RFC 5705. | 689 /* Export keying material according to RFC 5705. |
690 ** fd must correspond to a TLS 1.0 or higher socket and out must | 690 ** fd must correspond to a TLS 1.0 or higher socket and out must |
691 ** already be allocated. | 691 ** already be allocated. If contextLen is zero it uses the no-context |
| 692 ** construction from the RFC. |
692 */ | 693 */ |
693 SSL_IMPORT SECStatus SSL_ExportKeyingMaterial(PRFileDesc *fd, | 694 SSL_IMPORT SECStatus SSL_ExportKeyingMaterial(PRFileDesc *fd, |
694 const char *label, | 695 const char *label, |
| 696 unsigned int labelLen, |
695 const unsigned char *context, | 697 const unsigned char *context, |
696 unsigned int contextlen, | 698 unsigned int contextLen, |
697 unsigned char *out, | 699 unsigned char *out, |
698 unsigned int outlen); | 700 unsigned int outLen); |
699 | 701 |
700 /* | 702 /* |
701 ** Return a new reference to the certificate that was most recently sent | 703 ** Return a new reference to the certificate that was most recently sent |
702 ** to the peer on this SSL/TLS connection, or NULL if none has been sent. | 704 ** to the peer on this SSL/TLS connection, or NULL if none has been sent. |
703 */ | 705 */ |
704 SSL_IMPORT CERTCertificate * SSL_LocalCertificate(PRFileDesc *fd); | 706 SSL_IMPORT CERTCertificate * SSL_LocalCertificate(PRFileDesc *fd); |
705 | 707 |
706 /* Test an SSL configuration to see if SSL_BYPASS_PKCS11 can be turned on. | 708 /* Test an SSL configuration to see if SSL_BYPASS_PKCS11 can be turned on. |
707 ** Check the key exchange algorithm for each cipher in the list to see if | 709 ** Check the key exchange algorithm for each cipher in the list to see if |
708 ** a master secret key can be extracted after being derived with the mechanism | 710 ** a master secret key can be extracted after being derived with the mechanism |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 SSLExtensionType extId, | 744 SSLExtensionType extId, |
743 PRBool *yes); | 745 PRBool *yes); |
744 | 746 |
745 SSL_IMPORT SECStatus SSL_HandshakeResumedSession(PRFileDesc *fd, | 747 SSL_IMPORT SECStatus SSL_HandshakeResumedSession(PRFileDesc *fd, |
746 PRBool *last_handshake_resumed)
; | 748 PRBool *last_handshake_resumed)
; |
747 | 749 |
748 | 750 |
749 SEC_END_PROTOS | 751 SEC_END_PROTOS |
750 | 752 |
751 #endif /* __ssl_h_ */ | 753 #endif /* __ssl_h_ */ |
OLD | NEW |