patch-sslscan_c 1.3 KB

123456789101112131415161718192021222324
  1. $OpenBSD: patch-sslscan_c,v 1.7 2017/01/27 11:01:14 sthen Exp $
  2. use the accessor function; this struct member was made internal-only in libressl
  3. --- sslscan.c.orig Fri Jan 27 10:55:06 2017
  4. +++ sslscan.c Fri Jan 27 10:56:26 2017
  5. @@ -1155,14 +1155,14 @@ int testRenegotiation(struct sslCheckOptions *options,
  6. printf_verbose("Attempting SSL_do_handshake(ssl)\n");
  7. SSL_do_handshake(ssl); // Send renegotiation request to server //TODO :: XXX hanging here
  8. - if (ssl->state == SSL_ST_OK)
  9. + if (SSL_get_state(ssl) == SSL_ST_OK)
  10. {
  11. res = SSL_do_handshake(ssl); // Send renegotiation request to server
  12. if( res != 1 )
  13. {
  14. printf_error("\n\nSSL_do_handshake() call failed\n");
  15. }
  16. - if (ssl->state == SSL_ST_OK)
  17. + if (SSL_get_state(ssl) == SSL_ST_OK)
  18. {
  19. /* our renegotiation is complete */
  20. renOut->supported = true;