int tls_construct_cert_status(SSL *s)
{
    unsigned char *p;
    size_t msglen;
    msglen = 4 + s->tlsext_ocsp_resplen;
    if (!BUF_MEM_grow(s->init_buf, SSL_HM_HEADER_LENGTH(s) + msglen))
        goto err;
    p = ssl_handshake_start(s);
    *(p++) = s->tlsext_status_type;
    l2n3(s->tlsext_ocsp_resplen, p);
    memcpy(p, s->tlsext_ocsp_resp, s->tlsext_ocsp_resplen);
    if (!ssl_set_handshake_header(s, SSL3_MT_CERTIFICATE_STATUS, msglen))
        goto err;
    return 1;
 err:
    ossl_statem_set_error(s);
    return 0;
}
['int tls_construct_cert_status(SSL *s)\n{\n    unsigned char *p;\n    size_t msglen;\n    msglen = 4 + s->tlsext_ocsp_resplen;\n    if (!BUF_MEM_grow(s->init_buf, SSL_HM_HEADER_LENGTH(s) + msglen))\n        goto err;\n    p = ssl_handshake_start(s);\n    *(p++) = s->tlsext_status_type;\n    l2n3(s->tlsext_ocsp_resplen, p);\n    memcpy(p, s->tlsext_ocsp_resp, s->tlsext_ocsp_resplen);\n    if (!ssl_set_handshake_header(s, SSL3_MT_CERTIFICATE_STATUS, msglen))\n        goto err;\n    return 1;\n err:\n    ossl_statem_set_error(s);\n    return 0;\n}']