3341 Georgi Kodinov 2011-03-29
Moved the inclusion of time.h at the top of the #include list.
modified:
extra/yassl/src/ssl.cpp
3340 Georgi Kodinov 2011-03-29
Bug #11764778: server feature request - expose ssl certificate details
in show global st
There was no easy way to get the expiration dates of the server's
certificate.
Implemented two session status variables (Ssl_server_not_before and
Ssl_server_not_after) with the same scope as e.g. Ssl_verify_depth to
return the two dates in a format similar to OpenSSL's ASN1_TIME_print.
Since yaSSL doesn't preserve the parsed server certificate beyond
reading it, the diff extends yaSSL to preserve it and return it
through SSL_get_certificate(). Also fixed the storage of the
certificate expiration dates to have the ASN1_TIME subtype.
Implemented an yaSSL specific extension function
yaSSL_ASN1_TIME_to_string() to return the string representation of the
date in an ASN1_TIME in a format similar to OpenSSL's format.
Created a wrapper in MySQL to call either ASN1_TIME_print() or
yaSSL_ASN1_TIME_to_string() depending on the library type.
Did some type cleanups of some of the internal yaSSL functions.
Test case added.
modified:
extra/yassl/include/cert_wrapper.hpp
extra/yassl/include/openssl/prefix_ssl.h
extra/yassl/include/openssl/ssl.h
extra/yassl/include/yassl_int.hpp
extra/yassl/src/cert_wrapper.cpp
extra/yassl/src/ssl.cpp
extra/yassl/src/yassl_int.cpp
extra/yassl/taocrypt/include/asn.hpp
extra/yassl/taocrypt/src/asn.cpp
mysql-test/r/ssl.result
mysql-test/t/ssl.test
sql/mysqld.cc
=== modified file 'extra/yassl/src/ssl.cpp'
--- a/extra/yassl/src/ssl.cpp 2011-03-29 08:01:07 +0000
+++ b/extra/yassl/src/ssl.cpp 2011-03-29 08:34:58 +0000
@@ -29,6 +29,7 @@
/* see man pages for function descriptions */
+#include <time.h>
#include "runtime.hpp"
#include "openssl/ssl.h"
#include "handshake.hpp"
@@ -39,7 +40,6 @@
#include "coding.hpp" // HexDecoder
#include "helpers.hpp" // for placement new hack
#include <stdio.h>
-#include <time.h>
#ifdef _WIN32
#include <windows.h> // FindFirstFile etc..
No bundle (reason: useless for push emails).
| Thread |
|---|
| • bzr push into mysql-trunk branch (gkodinov:3340 to 3341) | Georgi Kodinov | 29 Mar |