diff options
| author | jsing <> | 2016-09-04 17:25:27 +0000 |
|---|---|---|
| committer | jsing <> | 2016-09-04 17:25:27 +0000 |
| commit | 23f120b5927d14f86b2daf4c65a8fced64ec72f5 (patch) | |
| tree | b7ccf24a8e700263a05479f62f49023f6e9b0d5c /src/lib/libcrypto/ocsp | |
| parent | 1e2e5aafd863a7c161e7e2c6a2cf07d4de642d95 (diff) | |
| download | openbsd-23f120b5927d14f86b2daf4c65a8fced64ec72f5.tar.gz openbsd-23f120b5927d14f86b2daf4c65a8fced64ec72f5.tar.bz2 openbsd-23f120b5927d14f86b2daf4c65a8fced64ec72f5.zip | |
Expand DECLARE_ASN1_.*FUNCTIONS macros.
No change in preprocessed output, ignoring whitespace and line numbers.
Diffstat (limited to 'src/lib/libcrypto/ocsp')
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp.h | 98 |
1 files changed, 81 insertions, 17 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp.h b/src/lib/libcrypto/ocsp/ocsp.h index eb65309981..90f0edf289 100644 --- a/src/lib/libcrypto/ocsp/ocsp.h +++ b/src/lib/libcrypto/ocsp/ocsp.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ocsp.h,v 1.7 2015/09/26 17:38:41 jsing Exp $ */ | 1 | /* $OpenBSD: ocsp.h,v 1.8 2016/09/04 17:18:18 jsing Exp $ */ |
| 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL | 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL |
| 3 | * project. */ | 3 | * project. */ |
| 4 | 4 | ||
| @@ -201,7 +201,11 @@ struct ocsp_responder_id_st { | |||
| 201 | }; | 201 | }; |
| 202 | 202 | ||
| 203 | DECLARE_STACK_OF(OCSP_RESPID) | 203 | DECLARE_STACK_OF(OCSP_RESPID) |
| 204 | DECLARE_ASN1_FUNCTIONS(OCSP_RESPID) | 204 | OCSP_RESPID *OCSP_RESPID_new(void); |
| 205 | void OCSP_RESPID_free(OCSP_RESPID *a); | ||
| 206 | OCSP_RESPID *d2i_OCSP_RESPID(OCSP_RESPID **a, const unsigned char **in, long len); | ||
| 207 | int i2d_OCSP_RESPID(OCSP_RESPID *a, unsigned char **out); | ||
| 208 | extern const ASN1_ITEM OCSP_RESPID_it; | ||
| 205 | 209 | ||
| 206 | /* KeyHash ::= OCTET STRING --SHA-1 hash of responder's public key | 210 | /* KeyHash ::= OCTET STRING --SHA-1 hash of responder's public key |
| 207 | * --(excluding the tag and length fields) | 211 | * --(excluding the tag and length fields) |
| @@ -522,21 +526,81 @@ int OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value, | |||
| 522 | int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, | 526 | int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, |
| 523 | int loc); | 527 | int loc); |
| 524 | 528 | ||
| 525 | DECLARE_ASN1_FUNCTIONS(OCSP_SINGLERESP) | 529 | OCSP_SINGLERESP *OCSP_SINGLERESP_new(void); |
| 526 | DECLARE_ASN1_FUNCTIONS(OCSP_CERTSTATUS) | 530 | void OCSP_SINGLERESP_free(OCSP_SINGLERESP *a); |
| 527 | DECLARE_ASN1_FUNCTIONS(OCSP_REVOKEDINFO) | 531 | OCSP_SINGLERESP *d2i_OCSP_SINGLERESP(OCSP_SINGLERESP **a, const unsigned char **in, long len); |
| 528 | DECLARE_ASN1_FUNCTIONS(OCSP_BASICRESP) | 532 | int i2d_OCSP_SINGLERESP(OCSP_SINGLERESP *a, unsigned char **out); |
| 529 | DECLARE_ASN1_FUNCTIONS(OCSP_RESPDATA) | 533 | extern const ASN1_ITEM OCSP_SINGLERESP_it; |
| 530 | DECLARE_ASN1_FUNCTIONS(OCSP_RESPID) | 534 | OCSP_CERTSTATUS *OCSP_CERTSTATUS_new(void); |
| 531 | DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE) | 535 | void OCSP_CERTSTATUS_free(OCSP_CERTSTATUS *a); |
| 532 | DECLARE_ASN1_FUNCTIONS(OCSP_RESPBYTES) | 536 | OCSP_CERTSTATUS *d2i_OCSP_CERTSTATUS(OCSP_CERTSTATUS **a, const unsigned char **in, long len); |
| 533 | DECLARE_ASN1_FUNCTIONS(OCSP_ONEREQ) | 537 | int i2d_OCSP_CERTSTATUS(OCSP_CERTSTATUS *a, unsigned char **out); |
| 534 | DECLARE_ASN1_FUNCTIONS(OCSP_CERTID) | 538 | extern const ASN1_ITEM OCSP_CERTSTATUS_it; |
| 535 | DECLARE_ASN1_FUNCTIONS(OCSP_REQUEST) | 539 | OCSP_REVOKEDINFO *OCSP_REVOKEDINFO_new(void); |
| 536 | DECLARE_ASN1_FUNCTIONS(OCSP_SIGNATURE) | 540 | void OCSP_REVOKEDINFO_free(OCSP_REVOKEDINFO *a); |
| 537 | DECLARE_ASN1_FUNCTIONS(OCSP_REQINFO) | 541 | OCSP_REVOKEDINFO *d2i_OCSP_REVOKEDINFO(OCSP_REVOKEDINFO **a, const unsigned char **in, long len); |
| 538 | DECLARE_ASN1_FUNCTIONS(OCSP_CRLID) | 542 | int i2d_OCSP_REVOKEDINFO(OCSP_REVOKEDINFO *a, unsigned char **out); |
| 539 | DECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC) | 543 | extern const ASN1_ITEM OCSP_REVOKEDINFO_it; |
| 544 | OCSP_BASICRESP *OCSP_BASICRESP_new(void); | ||
| 545 | void OCSP_BASICRESP_free(OCSP_BASICRESP *a); | ||
| 546 | OCSP_BASICRESP *d2i_OCSP_BASICRESP(OCSP_BASICRESP **a, const unsigned char **in, long len); | ||
| 547 | int i2d_OCSP_BASICRESP(OCSP_BASICRESP *a, unsigned char **out); | ||
| 548 | extern const ASN1_ITEM OCSP_BASICRESP_it; | ||
| 549 | OCSP_RESPDATA *OCSP_RESPDATA_new(void); | ||
| 550 | void OCSP_RESPDATA_free(OCSP_RESPDATA *a); | ||
| 551 | OCSP_RESPDATA *d2i_OCSP_RESPDATA(OCSP_RESPDATA **a, const unsigned char **in, long len); | ||
| 552 | int i2d_OCSP_RESPDATA(OCSP_RESPDATA *a, unsigned char **out); | ||
| 553 | extern const ASN1_ITEM OCSP_RESPDATA_it; | ||
| 554 | OCSP_RESPID *OCSP_RESPID_new(void); | ||
| 555 | void OCSP_RESPID_free(OCSP_RESPID *a); | ||
| 556 | OCSP_RESPID *d2i_OCSP_RESPID(OCSP_RESPID **a, const unsigned char **in, long len); | ||
| 557 | int i2d_OCSP_RESPID(OCSP_RESPID *a, unsigned char **out); | ||
| 558 | extern const ASN1_ITEM OCSP_RESPID_it; | ||
| 559 | OCSP_RESPONSE *OCSP_RESPONSE_new(void); | ||
| 560 | void OCSP_RESPONSE_free(OCSP_RESPONSE *a); | ||
| 561 | OCSP_RESPONSE *d2i_OCSP_RESPONSE(OCSP_RESPONSE **a, const unsigned char **in, long len); | ||
| 562 | int i2d_OCSP_RESPONSE(OCSP_RESPONSE *a, unsigned char **out); | ||
| 563 | extern const ASN1_ITEM OCSP_RESPONSE_it; | ||
| 564 | OCSP_RESPBYTES *OCSP_RESPBYTES_new(void); | ||
| 565 | void OCSP_RESPBYTES_free(OCSP_RESPBYTES *a); | ||
| 566 | OCSP_RESPBYTES *d2i_OCSP_RESPBYTES(OCSP_RESPBYTES **a, const unsigned char **in, long len); | ||
| 567 | int i2d_OCSP_RESPBYTES(OCSP_RESPBYTES *a, unsigned char **out); | ||
| 568 | extern const ASN1_ITEM OCSP_RESPBYTES_it; | ||
| 569 | OCSP_ONEREQ *OCSP_ONEREQ_new(void); | ||
| 570 | void OCSP_ONEREQ_free(OCSP_ONEREQ *a); | ||
| 571 | OCSP_ONEREQ *d2i_OCSP_ONEREQ(OCSP_ONEREQ **a, const unsigned char **in, long len); | ||
| 572 | int i2d_OCSP_ONEREQ(OCSP_ONEREQ *a, unsigned char **out); | ||
| 573 | extern const ASN1_ITEM OCSP_ONEREQ_it; | ||
| 574 | OCSP_CERTID *OCSP_CERTID_new(void); | ||
| 575 | void OCSP_CERTID_free(OCSP_CERTID *a); | ||
| 576 | OCSP_CERTID *d2i_OCSP_CERTID(OCSP_CERTID **a, const unsigned char **in, long len); | ||
| 577 | int i2d_OCSP_CERTID(OCSP_CERTID *a, unsigned char **out); | ||
| 578 | extern const ASN1_ITEM OCSP_CERTID_it; | ||
| 579 | OCSP_REQUEST *OCSP_REQUEST_new(void); | ||
| 580 | void OCSP_REQUEST_free(OCSP_REQUEST *a); | ||
| 581 | OCSP_REQUEST *d2i_OCSP_REQUEST(OCSP_REQUEST **a, const unsigned char **in, long len); | ||
| 582 | int i2d_OCSP_REQUEST(OCSP_REQUEST *a, unsigned char **out); | ||
| 583 | extern const ASN1_ITEM OCSP_REQUEST_it; | ||
| 584 | OCSP_SIGNATURE *OCSP_SIGNATURE_new(void); | ||
| 585 | void OCSP_SIGNATURE_free(OCSP_SIGNATURE *a); | ||
| 586 | OCSP_SIGNATURE *d2i_OCSP_SIGNATURE(OCSP_SIGNATURE **a, const unsigned char **in, long len); | ||
| 587 | int i2d_OCSP_SIGNATURE(OCSP_SIGNATURE *a, unsigned char **out); | ||
| 588 | extern const ASN1_ITEM OCSP_SIGNATURE_it; | ||
| 589 | OCSP_REQINFO *OCSP_REQINFO_new(void); | ||
| 590 | void OCSP_REQINFO_free(OCSP_REQINFO *a); | ||
| 591 | OCSP_REQINFO *d2i_OCSP_REQINFO(OCSP_REQINFO **a, const unsigned char **in, long len); | ||
| 592 | int i2d_OCSP_REQINFO(OCSP_REQINFO *a, unsigned char **out); | ||
| 593 | extern const ASN1_ITEM OCSP_REQINFO_it; | ||
| 594 | OCSP_CRLID *OCSP_CRLID_new(void); | ||
| 595 | void OCSP_CRLID_free(OCSP_CRLID *a); | ||
| 596 | OCSP_CRLID *d2i_OCSP_CRLID(OCSP_CRLID **a, const unsigned char **in, long len); | ||
| 597 | int i2d_OCSP_CRLID(OCSP_CRLID *a, unsigned char **out); | ||
| 598 | extern const ASN1_ITEM OCSP_CRLID_it; | ||
| 599 | OCSP_SERVICELOC *OCSP_SERVICELOC_new(void); | ||
| 600 | void OCSP_SERVICELOC_free(OCSP_SERVICELOC *a); | ||
| 601 | OCSP_SERVICELOC *d2i_OCSP_SERVICELOC(OCSP_SERVICELOC **a, const unsigned char **in, long len); | ||
| 602 | int i2d_OCSP_SERVICELOC(OCSP_SERVICELOC *a, unsigned char **out); | ||
| 603 | extern const ASN1_ITEM OCSP_SERVICELOC_it; | ||
| 540 | 604 | ||
| 541 | const char *OCSP_response_status_str(long s); | 605 | const char *OCSP_response_status_str(long s); |
| 542 | const char *OCSP_cert_status_str(long s); | 606 | const char *OCSP_cert_status_str(long s); |
