renegotiate_rate_limit

前端 未结 1 1154
别跟我提以往
别跟我提以往 2021-01-22 01:25

Does anyone know where and how to set this limit? This is regarding SSL/ TLS connections.

相关标签:
1条回答
  • 2021-01-22 01:41

    If you are using OpenSSL and you want a renegotiation to happen after a certain number of bytes, you can use BIO_set_ssl_renegotiate_bytes. If you want it to happen after a certain interval of time has elapsed, you can use BIO_set_ssl_renegotiate_timeout.

    If, instead, you want to set an upper limit on how often renegotiation is allowed, I don't think OpenSSL has explicit support for that. Instead, you might register an info callback with BIO_set_info_callback and then wait for SSL_ST_RENEGOTIATE notifications. If you observe them at a rate greater than you want, take some action (eg close the connection).

    0 讨论(0)
提交回复
热议问题