static ossl_inline void packet_forward(PACKET *pkt, size_t len)
{
    pkt->curr += len;
    pkt->remaining -= len;
}
['int tls_process_cert_status_body(SSL *s, PACKET *pkt, int *al)\n{\n    size_t resplen;\n    unsigned int type;\n    if (!PACKET_get_1(pkt, &type)\n        || type != TLSEXT_STATUSTYPE_ocsp) {\n        *al = SSL_AD_DECODE_ERROR;\n        SSLerr(SSL_F_TLS_PROCESS_CERT_STATUS_BODY,\n               SSL_R_UNSUPPORTED_STATUS_TYPE);\n        return 0;\n    }\n    if (!PACKET_get_net_3_len(pkt, &resplen)\n        || PACKET_remaining(pkt) != resplen) {\n        *al = SSL_AD_DECODE_ERROR;\n        SSLerr(SSL_F_TLS_PROCESS_CERT_STATUS_BODY, SSL_R_LENGTH_MISMATCH);\n        return 0;\n    }\n    s->ext.ocsp.resp = OPENSSL_malloc(resplen);\n    if (s->ext.ocsp.resp == NULL) {\n        *al = SSL_AD_INTERNAL_ERROR;\n        SSLerr(SSL_F_TLS_PROCESS_CERT_STATUS_BODY, ERR_R_MALLOC_FAILURE);\n        return 0;\n    }\n    if (!PACKET_copy_bytes(pkt, s->ext.ocsp.resp, resplen)) {\n        *al = SSL_AD_DECODE_ERROR;\n        SSLerr(SSL_F_TLS_PROCESS_CERT_STATUS_BODY, SSL_R_LENGTH_MISMATCH);\n        return 0;\n    }\n    s->ext.ocsp.resp_len = resplen;\n    return 1;\n}', 'static ossl_inline int PACKET_get_net_3_len(PACKET *pkt, size_t *data)\n{\n    unsigned long i;\n    int ret = PACKET_get_net_3(pkt, &i);\n    if (ret)\n        *data = (size_t)i;\n    return ret;\n}', 'static ossl_inline int PACKET_copy_bytes(PACKET *pkt,\n                                                unsigned char *data, size_t len)\n{\n    if (!PACKET_peek_copy_bytes(pkt, data, len))\n        return 0;\n    packet_forward(pkt, len);\n    return 1;\n}', 'static ossl_inline void packet_forward(PACKET *pkt, size_t len)\n{\n    pkt->curr += len;\n    pkt->remaining -= len;\n}']