static inline void packet_forward(PACKET *pkt, size_t len)
{
    pkt->curr += len;
    pkt->remaining -= len;
}
['enum MSG_PROCESS_RETURN dtls_process_hello_verify(SSL *s, PACKET *pkt)\n{\n    int al;\n    unsigned int cookie_len;\n    PACKET cookiepkt;\n    if (!PACKET_forward(pkt, 2)\n            || !PACKET_get_length_prefixed_1(pkt, &cookiepkt)) {\n        al = SSL_AD_DECODE_ERROR;\n        SSLerr(SSL_F_DTLS_PROCESS_HELLO_VERIFY, SSL_R_LENGTH_MISMATCH);\n        goto f_err;\n    }\n    cookie_len = PACKET_remaining(&cookiepkt);\n    if (cookie_len > sizeof(s->d1->cookie)) {\n        al = SSL_AD_ILLEGAL_PARAMETER;\n        SSLerr(SSL_F_DTLS_PROCESS_HELLO_VERIFY, SSL_R_LENGTH_TOO_LONG);\n        goto f_err;\n    }\n    if (!PACKET_copy_bytes(&cookiepkt, s->d1->cookie, cookie_len)) {\n        al = SSL_AD_DECODE_ERROR;\n        SSLerr(SSL_F_DTLS_PROCESS_HELLO_VERIFY, SSL_R_LENGTH_MISMATCH);\n        goto f_err;\n    }\n    s->d1->cookie_len = cookie_len;\n    return MSG_PROCESS_FINISHED_READING;\n f_err:\n    ssl3_send_alert(s, SSL3_AL_FATAL, al);\n    statem_set_error(s);\n    return MSG_PROCESS_ERROR;\n}', '__owur static inline int PACKET_get_length_prefixed_1(PACKET *pkt, PACKET *subpkt)\n{\n  unsigned int length;\n  unsigned char *data;\n  PACKET tmp = *pkt;\n  if (!PACKET_get_1(&tmp, &length) ||\n      !PACKET_get_bytes(&tmp, &data, (size_t)length)) {\n      return 0;\n  }\n  *pkt = tmp;\n  subpkt->curr = data;\n  subpkt->remaining = length;\n  return 1;\n}', '__owur static inline int PACKET_copy_bytes(PACKET *pkt, unsigned char *data,\n                                           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 inline void packet_forward(PACKET *pkt, size_t len)\n{\n    pkt->curr += len;\n    pkt->remaining -= len;\n}']