| 104 | } |
| 105 | |
| 106 | Continuation * |
| 107 | SSLNextProtocolSet::findEndpoint(const unsigned char *proto, unsigned len) const |
| 108 | { |
| 109 | for (const NextProtocolEndpoint *ep = this->endpoints.head; ep != nullptr; ep = this->endpoints.next(ep)) { |
| 110 | size_t sz = strlen(ep->protocol); |
| 111 | if (sz == len && memcmp(ep->protocol, proto, len) == 0) { |
| 112 | return ep->endpoint; |
| 113 | } |
| 114 | } |
| 115 | return nullptr; |
| 116 | } |
| 117 | |
| 118 | SSLNextProtocolSet::SSLNextProtocolSet() {} |
| 119 |
no test coverage detected