Allow an ALPN callback to pretend to not exist
[openssl.git] / ssl / statem / extensions.c
index cd1d0bd3ecc069bc4344b88ea7c6c585d3db2ad8..7ec71281720938f29b5cbce6ab66a1f572f26499 100644 (file)
@@ -919,6 +919,9 @@ static int final_alpn(SSL *s, unsigned int context, int sent, int *al)
             /* ALPN takes precedence over NPN. */
             s->s3->npn_seen = 0;
 #endif
+        } else if (r == SSL_TLSEXT_ERR_NOACK) {
+            /* Behave as if no callback was present. */
+            return 1;
         } else {
             *al = SSL_AD_NO_APPLICATION_PROTOCOL;
             return 0;