| OLD | NEW |
| 1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | 4 |
| 5 /* | 5 /* |
| 6 * Interface to the OCSP implementation. | 6 * Interface to the OCSP implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef _OCSP_H_ | 9 #ifndef _OCSP_H_ |
| 10 #define _OCSP_H_ | 10 #define _OCSP_H_ |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 * CERTCertDBHandle *handle | 164 * CERTCertDBHandle *handle |
| 165 * Cert database on which OCSP checking should stop using a default | 165 * Cert database on which OCSP checking should stop using a default |
| 166 * responder. | 166 * responder. |
| 167 * RETURN: | 167 * RETURN: |
| 168 * Returns SECFailure if an error occurred; SECSuccess otherwise. | 168 * Returns SECFailure if an error occurred; SECSuccess otherwise. |
| 169 * Errors very unlikely (like random memory corruption...). | 169 * Errors very unlikely (like random memory corruption...). |
| 170 */ | 170 */ |
| 171 extern SECStatus | 171 extern SECStatus |
| 172 CERT_DisableOCSPDefaultResponder(CERTCertDBHandle *handle); | 172 CERT_DisableOCSPDefaultResponder(CERTCertDBHandle *handle); |
| 173 | 173 |
| 174 /* If forcePost is set, OCSP requests will only be sent using the HTTP POST |
| 175 * method. When forcePost is not set, OCSP requests will be sent using the |
| 176 * HTTP GET method, with a fallback to POST when we fail to receive a response |
| 177 * and/or when we receive an uncacheable response like "Unknown." |
| 178 * |
| 179 * The default is to use GET and fallback to POST. |
| 180 */ |
| 181 extern SECStatus CERT_ForcePostMethodForOCSP(PRBool forcePost); |
| 182 |
| 174 /* | 183 /* |
| 175 * ------------------------------------------------------- | 184 * ------------------------------------------------------- |
| 176 * The Functions above are those expected to be used by a client | 185 * The Functions above are those expected to be used by a client |
| 177 * providing OCSP status checking along with every cert verification. | 186 * providing OCSP status checking along with every cert verification. |
| 178 * The functions below are for OCSP testing, debugging, or clients | 187 * The functions below are for OCSP testing, debugging, or clients |
| 179 * or servers performing more specialized OCSP tasks. | 188 * or servers performing more specialized OCSP tasks. |
| 180 * ------------------------------------------------------- | 189 * ------------------------------------------------------- |
| 181 */ | 190 */ |
| 182 | 191 |
| 183 /* | 192 /* |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 * SEC_RegisterDefaultHttpClient then that client is used. Otherwise, an | 717 * SEC_RegisterDefaultHttpClient then that client is used. Otherwise, an |
| 709 * internal HTTP client is used. | 718 * internal HTTP client is used. |
| 710 */ | 719 */ |
| 711 SECItem* CERT_PostOCSPRequest(PLArenaPool *arena, const char *location, | 720 SECItem* CERT_PostOCSPRequest(PLArenaPool *arena, const char *location, |
| 712 const SECItem *encodedRequest); | 721 const SECItem *encodedRequest); |
| 713 | 722 |
| 714 /************************************************************************/ | 723 /************************************************************************/ |
| 715 SEC_END_PROTOS | 724 SEC_END_PROTOS |
| 716 | 725 |
| 717 #endif /* _OCSP_H_ */ | 726 #endif /* _OCSP_H_ */ |
| OLD | NEW |