Latest update (add quic)
This commit is contained in:
+11
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -79,6 +79,16 @@ int ssl3_dispatch_alert(SSL *s)
|
||||
|
||||
s->s3.alert_dispatch = 0;
|
||||
alertlen = 2;
|
||||
#ifndef OPENSSL_NO_QUIC
|
||||
if (SSL_IS_QUIC(s)) {
|
||||
if (!s->quic_method->send_alert(s, s->quic_write_level,
|
||||
s->s3.send_alert[1])) {
|
||||
SSLerr(SSL_F_SSL3_DISPATCH_ALERT, SSL_R_INTERNAL_ERROR);
|
||||
return 0;
|
||||
}
|
||||
i = 1;
|
||||
} else
|
||||
#endif
|
||||
i = do_ssl3_write(s, SSL3_RT_ALERT, &s->s3.send_alert[0], &alertlen, 1, 0,
|
||||
&written);
|
||||
if (i <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user