Skip to content

Commit e7ff204

Browse files
author
Robert Golebiowski
committed
Bug #21025377 CAN'T CONNECT TO SSL ENABLED SERVER FIRST 30 SEC AFTER
INITIAL STARTUP Description: By using mysql_ssl_rsa_setup to get SSL enabled server (after running mysqld --initialize) server don't answer properly to "mysqladmin ping" first 30 secs after startup. Bug-fix: YASSL validated certificate date to the minute but should have to the second. This is why the ssl on the server side was not up right away after new certs were created with mysql_ssl_rsa_setup. The fix for that was submitted by Todd. YASSL was updated to 2.3.7c.
1 parent c9685a7 commit e7ff204

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

extra/yassl/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ before calling SSL_new();
1212

1313
*** end Note ***
1414

15+
yaSSL Patch notes, version 2.3.7c (6/12/2015)
16+
This release of yaSSL does certificate DATE comparisons to the second
17+
instead of to the minute, helpful when using freshly generated certs.
18+
Though keep in mind that time sync differences could still show up.
19+
1520
yaSSL Patch notes, version 2.3.7b (3/18/2015)
1621
This release of yaSSL fixes a potential crash with corrupted private keys.
1722
Also detects bad keys earlier for user.

extra/yassl/include/openssl/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "rsa.h"
3636

3737

38-
#define YASSL_VERSION "2.3.7b"
38+
#define YASSL_VERSION "2.3.7c"
3939

4040

4141
#if defined(__cplusplus)

extra/yassl/taocrypt/src/asn.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace TaoCrypt {
3939
namespace { // locals
4040

4141

42-
// to the minute
42+
// to the second
4343
bool operator>(tm& a, tm& b)
4444
{
4545
if (a.tm_year > b.tm_year)
@@ -60,6 +60,11 @@ bool operator>(tm& a, tm& b)
6060
a.tm_min > b.tm_min)
6161
return true;
6262

63+
if (a.tm_year == b.tm_year && a.tm_mon == b.tm_mon &&
64+
a.tm_mday == b.tm_mday && a.tm_hour == b.tm_hour &&
65+
a.tm_min == b.tm_min && a.tm_sec > b.tm_sec)
66+
return true;
67+
6368
return false;
6469
}
6570

0 commit comments

Comments
 (0)