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, const PACKET *pkt)\n{\n    unsigned int type, size;\n    const unsigned char *eblock1, *eblock2;\n    PACKET tmppkt;\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    };\n    static const unsigned char kSafariTLS12ExtensionsBlock[] = {\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    tmppkt = *pkt;\n    if (!PACKET_forward(&tmppkt, 2)\n            || !PACKET_get_net_2(&tmppkt, &type)\n            || !PACKET_get_net_2(&tmppkt, &size)\n            || !PACKET_forward(&tmppkt, size))\n        return;\n    if (type != TLSEXT_TYPE_server_name)\n        return;\n    if (TLS1_get_client_version(s) >= TLS1_2_VERSION) {\n        const size_t len1 = sizeof(kSafariExtensionsBlock);\n        const size_t len2 = sizeof(kSafariTLS12ExtensionsBlock);\n        if (!PACKET_get_bytes(&tmppkt, &eblock1, len1)\n                || !PACKET_get_bytes(&tmppkt, &eblock2, len2)\n                || PACKET_remaining(&tmppkt))\n            return;\n        if (memcmp(eblock1, kSafariExtensionsBlock, len1) != 0)\n            return;\n        if (memcmp(eblock2, kSafariTLS12ExtensionsBlock, len2) != 0)\n            return;\n    } else {\n        const size_t len = sizeof(kSafariExtensionsBlock);\n        if (!PACKET_get_bytes(&tmppkt, &eblock1, len)\n                || PACKET_remaining(&tmppkt))\n            return;\n        if (memcmp(eblock1, kSafariExtensionsBlock, len) != 0)\n            return;\n    }\n    s->s3->is_probably_safari = 1;\n}', 'static ossl_inline void packet_forward(PACKET *pkt, size_t len)\n{\n    pkt->curr += len;\n    pkt->remaining -= len;\n}']