SSL::alpn

Description

Sets or retrieves the Application Layer Protocol Negotiation (ALPN) string

Syntax

SSL::alpn
SSL::alpn set <arg>+

SSL::alpn

  • Retrieve the selected ALPN string. Valid during the CLIENTSSL_HANDSHAKE event.

SSL::alpn set <arg>+

  • Sets the advertised ALPN string. No return value. Valid during the CLIENTSSL_CLIENTHELLO event.

Examples

when CLIENTSSL_CLIENTHELLO {
    SSL::alpn set "spdy/1" "spdy/2" "http/2"
}
when CLIENTSSL_HANDSHAKE {
    log local0.info "negotiated protocol: [SSL::alpn]"
}