Compare OCSP nonce extensions between a request and a basic response.

Synopsis

Declared in <openssl/ocsp.h>

int
OCSP_check_nonce(
    OCSP_REQUEST* req,
    OCSP_BASICRESP* bs);

Return Value

1 if nonces match, 2 if neither has a nonce, 3 if only the response has one, 0 if present but unequal, or ‐1 if only the request has a nonce.

Parameters

Name

Description

req

OCSP request that may contain a nonce.

bs

Basic response that may contain a matching nonce.

Created with MrDocs