MCPcopy Index your code
hub / github.com/php/frankenphp / tlsProtocol

Function tlsProtocol

cgi.go:382–395  ·  view source on GitHub ↗

Protocol versions, in Apache mod_ssl format: https://httpd.apache.org/docs/current/mod/mod_ssl.html Note that these are slightly different from SupportedProtocols in caddytls/config.go

(proto uint16)

Source from the content-addressed store, hash-verified

380// Protocol versions, in Apache mod_ssl format: https://httpd.apache.org/docs/current/mod/mod_ssl.html
381// Note that these are slightly different from SupportedProtocols in caddytls/config.go
382func tlsProtocol(proto uint16) *C.zend_string {
383 switch proto {
384 case tls.VersionTLS10:
385 return C.frankenphp_strings.tls1
386 case tls.VersionTLS11:
387 return C.frankenphp_strings.tls11
388 case tls.VersionTLS12:
389 return C.frankenphp_strings.tls12
390 case tls.VersionTLS13:
391 return C.frankenphp_strings.tls13
392 default:
393 return C.frankenphp_strings.empty
394 }
395}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected