static char **lookup_serial(CA_DB *db, ASN1_INTEGER *ser);
static int do_responder(OCSP_REQUEST **preq, BIO **pcbio, BIO *acbio,
- const char *port, int timeout);
+ int timeout);
static int send_ocsp_response(BIO *cbio, const OCSP_RESPONSE *resp);
static char *prog;
if (req == NULL && port != NULL) {
#ifndef OPENSSL_NO_SOCK
- acbio = http_server_init_bio(prog, port);
+ acbio = http_server_init(prog, port, -1);
if (acbio == NULL)
goto end;
#else
#endif
req = NULL;
- res = do_responder(&req, &cbio, acbio, port, req_timeout);
+ res = do_responder(&req, &cbio, acbio, req_timeout);
if (res == 0)
goto redo_accept;
}
static int do_responder(OCSP_REQUEST **preq, BIO **pcbio, BIO *acbio,
- const char *port, int timeout)
+ int timeout)
{
#ifndef OPENSSL_NO_SOCK
return http_server_get_asn1_req(ASN1_ITEM_rptr(OCSP_REQUEST),
(ASN1_VALUE **)preq, NULL, pcbio, acbio,
NULL /* found_keep_alive */,
- prog, port, 1 /* accept_get */, timeout);
+ prog, 1 /* accept_get */, timeout);
#else
BIO_printf(bio_err,
"Error getting OCSP request - sockets not supported\n");