diff options
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp.h')
-rw-r--r-- | src/lib/libcrypto/ocsp/ocsp.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp.h b/src/lib/libcrypto/ocsp/ocsp.h index 90f0edf289..24592bc3cc 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.8 2016/09/04 17:18:18 jsing Exp $ */ | 1 | /* $OpenBSD: ocsp.h,v 1.9 2016/11/04 18:35:30 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 | ||
@@ -343,12 +343,6 @@ typedef struct ocsp_service_locator_st { | |||
343 | #define PEM_STRING_OCSP_REQUEST "OCSP REQUEST" | 343 | #define PEM_STRING_OCSP_REQUEST "OCSP REQUEST" |
344 | #define PEM_STRING_OCSP_RESPONSE "OCSP RESPONSE" | 344 | #define PEM_STRING_OCSP_RESPONSE "OCSP RESPONSE" |
345 | 345 | ||
346 | #define d2i_OCSP_REQUEST_bio(bp,p) \ | ||
347 | ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p) | ||
348 | |||
349 | #define d2i_OCSP_RESPONSE_bio(bp,p) \ | ||
350 | ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p) | ||
351 | |||
352 | #define PEM_read_bio_OCSP_REQUEST(bp,x,cb) \ | 346 | #define PEM_read_bio_OCSP_REQUEST(bp,x,cb) \ |
353 | (OCSP_REQUEST *)PEM_ASN1_read_bio((char *(*)())d2i_OCSP_REQUEST, \ | 347 | (OCSP_REQUEST *)PEM_ASN1_read_bio((char *(*)())d2i_OCSP_REQUEST, \ |
354 | PEM_STRING_OCSP_REQUEST,bp,(char **)x,cb,NULL) | 348 | PEM_STRING_OCSP_REQUEST,bp,(char **)x,cb,NULL) |
@@ -365,12 +359,6 @@ typedef struct ocsp_service_locator_st { | |||
365 | PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\ | 359 | PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\ |
366 | bp,(char *)o, NULL,NULL,0,NULL,NULL) | 360 | bp,(char *)o, NULL,NULL,0,NULL,NULL) |
367 | 361 | ||
368 | #define i2d_OCSP_RESPONSE_bio(bp,o) \ | ||
369 | ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o) | ||
370 | |||
371 | #define i2d_OCSP_REQUEST_bio(bp,o) \ | ||
372 | ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o) | ||
373 | |||
374 | #define OCSP_REQUEST_sign(o,pkey,md) \ | 362 | #define OCSP_REQUEST_sign(o,pkey,md) \ |
375 | ASN1_item_sign(ASN1_ITEM_rptr(OCSP_REQINFO), \ | 363 | ASN1_item_sign(ASN1_ITEM_rptr(OCSP_REQINFO), \ |
376 | o->optionalSignature->signatureAlgorithm,NULL, \ | 364 | o->optionalSignature->signatureAlgorithm,NULL, \ |
@@ -560,6 +548,8 @@ OCSP_RESPONSE *OCSP_RESPONSE_new(void); | |||
560 | void OCSP_RESPONSE_free(OCSP_RESPONSE *a); | 548 | void OCSP_RESPONSE_free(OCSP_RESPONSE *a); |
561 | OCSP_RESPONSE *d2i_OCSP_RESPONSE(OCSP_RESPONSE **a, const unsigned char **in, long len); | 549 | 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); | 550 | int i2d_OCSP_RESPONSE(OCSP_RESPONSE *a, unsigned char **out); |
551 | OCSP_RESPONSE *d2i_OCSP_RESPONSE_bio(BIO *bp, OCSP_RESPONSE **a); | ||
552 | int i2d_OCSP_RESPONSE_bio(BIO *bp, OCSP_RESPONSE *a); | ||
563 | extern const ASN1_ITEM OCSP_RESPONSE_it; | 553 | extern const ASN1_ITEM OCSP_RESPONSE_it; |
564 | OCSP_RESPBYTES *OCSP_RESPBYTES_new(void); | 554 | OCSP_RESPBYTES *OCSP_RESPBYTES_new(void); |
565 | void OCSP_RESPBYTES_free(OCSP_RESPBYTES *a); | 555 | void OCSP_RESPBYTES_free(OCSP_RESPBYTES *a); |
@@ -580,6 +570,8 @@ OCSP_REQUEST *OCSP_REQUEST_new(void); | |||
580 | void OCSP_REQUEST_free(OCSP_REQUEST *a); | 570 | void OCSP_REQUEST_free(OCSP_REQUEST *a); |
581 | OCSP_REQUEST *d2i_OCSP_REQUEST(OCSP_REQUEST **a, const unsigned char **in, long len); | 571 | 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); | 572 | int i2d_OCSP_REQUEST(OCSP_REQUEST *a, unsigned char **out); |
573 | OCSP_REQUEST *d2i_OCSP_REQUEST_bio(BIO *bp, OCSP_REQUEST **a); | ||
574 | int i2d_OCSP_REQUEST_bio(BIO *bp, OCSP_REQUEST *a); | ||
583 | extern const ASN1_ITEM OCSP_REQUEST_it; | 575 | extern const ASN1_ITEM OCSP_REQUEST_it; |
584 | OCSP_SIGNATURE *OCSP_SIGNATURE_new(void); | 576 | OCSP_SIGNATURE *OCSP_SIGNATURE_new(void); |
585 | void OCSP_SIGNATURE_free(OCSP_SIGNATURE *a); | 577 | void OCSP_SIGNATURE_free(OCSP_SIGNATURE *a); |