Skip to content

How to disable ssl renegotiation? #21666

Answered by boroknagyz
okayabc asked this question in Q&A
Apr 29, 2020 · 19 comments · 13 replies
Discussion options

You must be logged in to vote

Hey Everyone,

I ran into the same issue, i.e. I can disable RENEGOTIATIONs when using a callback like the above 'ssl_info_callback()', but cannot disable it when setting the flag right after SSL_new(). Though I can disable RENEGOTIATIONs if I set the flag after SSL_accept().

So I created a debug build of OpenSSL_1_0_2-stable (12ad22d), and checked what resets the flag:

(gdb) watch ssl->s3->flags
...
Hardware watchpoint 2: ssl->s3->flags

Old value = 1
New value = 0
0x00007ffff7898a59 in __memset_sse2 () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff7898a59 in __memset_sse2 () from /lib64/libc.so.6
#1  0x000000000042e899 in ssl3_clear (s=0x86dbd0) at s3_lib.c:3145
#2  0x0000000000403bf8 in…

Replies: 19 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
13 replies
@arapov
Comment options

@BugOfBugs
Comment options

@t8m
Comment options

@BugOfBugs
Comment options

@mattcaswell
Comment options

Answer selected by t8m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triaged: question The issue contains a question
7 participants
Converted from issue

This discussion was converted from issue #11673 on August 07, 2023 02:20.