| 39 | // not say how many bytes the length is. For the record, it's 1. |
| 40 | |
| 41 | unsigned char * |
| 42 | append_protocol(const char *proto, unsigned char *buf) |
| 43 | { |
| 44 | size_t sz = strlen(proto); |
| 45 | *buf++ = static_cast<unsigned char>(sz); |
| 46 | memcpy(buf, proto, sz); |
| 47 | return buf + sz; |
| 48 | } |
| 49 | |
| 50 | bool |
| 51 | SSLNextProtocolSet::create_npn_advertisement(const SessionProtocolSet &enabled, unsigned char **npn, size_t *len) const |
no test coverage detected