Parsing of an alpn string has been moved in a dedicated function and exposed to be used from outside the ssl_sock module.