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)
| 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 |
| 382 | func 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 | } |
no outgoing calls
no test coverage detected