static ossl_inline void packet_forward(PACKET *pkt, size_t len)
{
    pkt->curr += len;
    pkt->remaining -= len;
}
['static void ssl_check_for_safari(SSL *s, CLIENTHELLO_MSG *hello)\n{\n    unsigned int type;\n    PACKET sni, tmppkt;\n    size_t ext_len;\n    static const unsigned char kSafariExtensionsBlock[] = {\n        0x00, 0x0a,\n        0x00, 0x08,\n        0x00, 0x06,\n        0x00, 0x17,\n        0x00, 0x18,\n        0x00, 0x19,\n        0x00, 0x0b,\n        0x00, 0x02,\n        0x01,\n        0x00,\n        0x00, 0x0d,\n        0x00, 0x0c,\n        0x00, 0x0a,\n        0x05, 0x01,\n        0x04, 0x01,\n        0x02, 0x01,\n        0x04, 0x03,\n        0x02, 0x03,\n    };\n    static const size_t kSafariCommonExtensionsLength = 18;\n    tmppkt = hello->extensions;\n    if (!PACKET_forward(&tmppkt, 2)\n        || !PACKET_get_net_2(&tmppkt, &type)\n        || !PACKET_get_length_prefixed_2(&tmppkt, &sni)) {\n        return;\n    }\n    if (type != TLSEXT_TYPE_server_name)\n        return;\n    ext_len = TLS1_get_client_version(s) >= TLS1_2_VERSION ?\n        sizeof(kSafariExtensionsBlock) : kSafariCommonExtensionsLength;\n    s->s3->is_probably_safari = PACKET_equal(&tmppkt, kSafariExtensionsBlock,\n                                             ext_len);\n}', 'static ossl_inline int PACKET_forward(PACKET *pkt, size_t len)\n{\n    if (PACKET_remaining(pkt) < 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}']