diff options
| author | djm <> | 2010-10-01 22:59:01 +0000 |
|---|---|---|
| committer | djm <> | 2010-10-01 22:59:01 +0000 |
| commit | 8922d4bc4a8b8893d72a48deb2cdf58215f98505 (patch) | |
| tree | 939b752540947d33507b3acc48d76a8bfb7c3dc3 /src/lib/libcrypto/ocsp/ocsp.h | |
| parent | 76262f7bf9262f965142b1b2b2105cb279c5c696 (diff) | |
| download | openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.gz openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.bz2 openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.zip | |
resolve conflicts, fix local changes
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp.h')
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp.h b/src/lib/libcrypto/ocsp/ocsp.h index a0577a717e..31e45744ba 100644 --- a/src/lib/libcrypto/ocsp/ocsp.h +++ b/src/lib/libcrypto/ocsp/ocsp.h | |||
| @@ -64,6 +64,7 @@ | |||
| 64 | #ifndef HEADER_OCSP_H | 64 | #ifndef HEADER_OCSP_H |
| 65 | #define HEADER_OCSP_H | 65 | #define HEADER_OCSP_H |
| 66 | 66 | ||
| 67 | #include <openssl/ossl_typ.h> | ||
| 67 | #include <openssl/x509.h> | 68 | #include <openssl/x509.h> |
| 68 | #include <openssl/x509v3.h> | 69 | #include <openssl/x509v3.h> |
| 69 | #include <openssl/safestack.h> | 70 | #include <openssl/safestack.h> |
| @@ -394,17 +395,20 @@ typedef struct ocsp_service_locator_st | |||
| 394 | #define ASN1_BIT_STRING_digest(data,type,md,len) \ | 395 | #define ASN1_BIT_STRING_digest(data,type,md,len) \ |
| 395 | ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len) | 396 | ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len) |
| 396 | 397 | ||
| 397 | #define OCSP_CERTID_dup(cid) ASN1_dup_of(OCSP_CERTID,i2d_OCSP_CERTID,d2i_OCSP_CERTID,cid) | ||
| 398 | |||
| 399 | #define OCSP_CERTSTATUS_dup(cs)\ | 398 | #define OCSP_CERTSTATUS_dup(cs)\ |
| 400 | (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\ | 399 | (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\ |
| 401 | (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs)) | 400 | (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs)) |
| 402 | 401 | ||
| 402 | OCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id); | ||
| 403 | |||
| 403 | OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, char *path, OCSP_REQUEST *req); | 404 | OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, char *path, OCSP_REQUEST *req); |
| 404 | OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, | 405 | OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, |
| 405 | int maxline); | 406 | int maxline); |
| 406 | int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx); | 407 | int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx); |
| 407 | void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx); | 408 | void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx); |
| 409 | int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req); | ||
| 410 | int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx, | ||
| 411 | const char *name, const char *value); | ||
| 408 | 412 | ||
| 409 | OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer); | 413 | OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer); |
| 410 | 414 | ||
| @@ -474,11 +478,6 @@ int OCSP_basic_sign(OCSP_BASICRESP *brsp, | |||
| 474 | X509 *signer, EVP_PKEY *key, const EVP_MD *dgst, | 478 | X509 *signer, EVP_PKEY *key, const EVP_MD *dgst, |
| 475 | STACK_OF(X509) *certs, unsigned long flags); | 479 | STACK_OF(X509) *certs, unsigned long flags); |
| 476 | 480 | ||
| 477 | ASN1_STRING *ASN1_STRING_encode(ASN1_STRING *s, i2d_of_void *i2d, | ||
| 478 | void *data, STACK_OF(ASN1_OBJECT) *sk); | ||
| 479 | #define ASN1_STRING_encode_of(type,s,i2d,data,sk) \ | ||
| 480 | ASN1_STRING_encode(s, CHECKED_I2D_OF(type, i2d), data, sk) | ||
| 481 | |||
| 482 | X509_EXTENSION *OCSP_crlID_new(char *url, long *n, char *tim); | 481 | X509_EXTENSION *OCSP_crlID_new(char *url, long *n, char *tim); |
| 483 | 482 | ||
| 484 | X509_EXTENSION *OCSP_accept_responses_new(char **oids); | 483 | X509_EXTENSION *OCSP_accept_responses_new(char **oids); |
| @@ -547,9 +546,9 @@ DECLARE_ASN1_FUNCTIONS(OCSP_REQINFO) | |||
| 547 | DECLARE_ASN1_FUNCTIONS(OCSP_CRLID) | 546 | DECLARE_ASN1_FUNCTIONS(OCSP_CRLID) |
| 548 | DECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC) | 547 | DECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC) |
| 549 | 548 | ||
| 550 | char *OCSP_response_status_str(long s); | 549 | const char *OCSP_response_status_str(long s); |
| 551 | char *OCSP_cert_status_str(long s); | 550 | const char *OCSP_cert_status_str(long s); |
| 552 | char *OCSP_crl_reason_str(long s); | 551 | const char *OCSP_crl_reason_str(long s); |
| 553 | 552 | ||
| 554 | int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST* a, unsigned long flags); | 553 | int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST* a, unsigned long flags); |
| 555 | int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE* o, unsigned long flags); | 554 | int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE* o, unsigned long flags); |
| @@ -582,7 +581,8 @@ void ERR_load_OCSP_strings(void); | |||
| 582 | #define OCSP_F_OCSP_REQUEST_VERIFY 116 | 581 | #define OCSP_F_OCSP_REQUEST_VERIFY 116 |
| 583 | #define OCSP_F_OCSP_RESPONSE_GET1_BASIC 111 | 582 | #define OCSP_F_OCSP_RESPONSE_GET1_BASIC 111 |
| 584 | #define OCSP_F_OCSP_SENDREQ_BIO 112 | 583 | #define OCSP_F_OCSP_SENDREQ_BIO 112 |
| 585 | #define OCSP_F_PARSE_HTTP_LINE1 117 | 584 | #define OCSP_F_OCSP_SENDREQ_NBIO 117 |
| 585 | #define OCSP_F_PARSE_HTTP_LINE1 118 | ||
| 586 | #define OCSP_F_REQUEST_VERIFY 113 | 586 | #define OCSP_F_REQUEST_VERIFY 113 |
| 587 | 587 | ||
| 588 | /* Reason codes. */ | 588 | /* Reason codes. */ |
