DTLS is not sending alert in case of BAD CCS

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

DTLS is not sending alert in case of BAD CCS

Raja ashok

Hi All,

 

Looks like there is a typo mistake in dtls1_read_bytes, because of this alert is not send for bad CCS.

 

In dtls1_read_bytes, incase of bad change cipher spec we are setting alert code (SSL_AD_ILLEGAL_PARAMETER) to variable “i” and doing “goto err”. I feel we are trying to send alert in this case, so we need to set the alert in “al” and do “goto f_err”.

 

In case of TLS we are sending alert.

 

Note : I am referring 1.0.2.k version of OpenSSL

 

Regards,

Ashok

 


Company_logo

Raja Ashok V K
Huawei Technologies
Bangalore, India
http://www.huawei.com


本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!

 


--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DTLS is not sending alert in case of BAD CCS

Matt Caswell-2
https://github.com/openssl/openssl/pull/3009

On 21/03/17 15:24, Raja ashok wrote:

> Hi All,
>
>  
>
> Looks like there is a typo mistake in dtls1_read_bytes, because of this
> alert is not send for bad CCS.
>
>  
>
> In dtls1_read_bytes, incase of bad change cipher spec we are setting
> alert code (SSL_AD_ILLEGAL_PARAMETER) to variable “i” and doing “goto
> err”. I feel we are trying to send alert in this case, so we need to set
> the alert in “al” and do “goto f_err”.
>
>  
>
> In case of TLS we are sending alert.
>
>  
>
> Note : I am referring 1.0.2.k version of OpenSSL
>
>  
>
> Regards,
>
> Ashok
>
>  
>
> ------------------------------------------------------------------------
>
> Company_logo
>
> Raja Ashok V K
> Huawei Technologies
> Bangalore, India
> http://www.huawei.com
>
> ------------------------------------------------------------------------
>
> 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或
> 群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)
> 本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above.
> Any use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>  
>
>
>
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Loading...