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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
344 /* | 344 /* |
345 * Prototype for SSL callback to get client auth data from the application, | 345 * Prototype for SSL callback to get client auth data from the application, |
346 * when using the underlying platform's cryptographic primitives. Returning | 346 * when using the underlying platform's cryptographic primitives. Returning |
347 * SECFailure will cause the socket to send no client certificate. | 347 * SECFailure will cause the socket to send no client certificate. |
348 * arg - application passed argument | 348 * arg - application passed argument |
349 * caNames - pointer to distinguished names of CAs that the server likes | 349 * caNames - pointer to distinguished names of CAs that the server likes |
350 * pRetCerts - pointer to pointer to list of certs, with the first being | 350 * pRetCerts - pointer to pointer to list of certs, with the first being |
351 * the client cert, and any following being used for chain | 351 * the client cert, and any following being used for chain |
352 * building | 352 * building |
353 * pRetKey - pointer to native key pointer, for return of key | 353 * pRetKey - pointer to native key pointer, for return of key |
354 * - Windows: pointer to HCRYPTPROV | 354 * - Windows: A PCERT_KEY_CONTEXT, allocated via PORT_Alloc(). |
wtc
2011/02/04 01:32:16
This should say "A pointer to PCERT_KEY_CONTEXT",
Ryan Sleevi
2011/02/05 04:43:20
Thanks. Here, it is supposed to be a pointer-to-a-
| |
355 * - Mac OS X: pointer to SecKeyRef | 355 * Ownership will be transferred to NSS, which will free |
356 * via PORT_Free(). | |
357 * - Mac OS X: A pointer to a SecKeyRef. Ownership will be | |
358 * transferred to NSS, which will free via CFRelease(). | |
356 */ | 359 */ |
357 typedef SECStatus (PR_CALLBACK *SSLGetPlatformClientAuthData)(void *arg, | 360 typedef SECStatus (PR_CALLBACK *SSLGetPlatformClientAuthData)(void *arg, |
358 PRFileDesc *fd, | 361 PRFileDesc *fd, |
359 CERTDistNames *caNames, | 362 CERTDistNames *caNames, |
360 CERTCertList **pRetCerts,/*return */ | 363 CERTCertList **pRetCerts,/*return */ |
361 void **pRetKey);/* return */ | 364 void **pRetKey);/* return */ |
362 | 365 |
363 /* | 366 /* |
364 * Set the client side callback for SSL to retrieve user's private key | 367 * Set the client side callback for SSL to retrieve user's private key |
365 * and certificate. | 368 * and certificate. |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
748 ** Did the handshake with the peer negotiate the given extension? | 751 ** Did the handshake with the peer negotiate the given extension? |
749 ** Output parameter valid only if function returns SECSuccess | 752 ** Output parameter valid only if function returns SECSuccess |
750 */ | 753 */ |
751 SSL_IMPORT SECStatus SSL_HandshakeNegotiatedExtension(PRFileDesc * socket, | 754 SSL_IMPORT SECStatus SSL_HandshakeNegotiatedExtension(PRFileDesc * socket, |
752 SSLExtensionType extId, | 755 SSLExtensionType extId, |
753 PRBool *yes); | 756 PRBool *yes); |
754 | 757 |
755 SEC_END_PROTOS | 758 SEC_END_PROTOS |
756 | 759 |
757 #endif /* __ssl_h_ */ | 760 #endif /* __ssl_h_ */ |
OLD | NEW |