diff options
author | Julien Boeuf <jboeuf@google.com> | 2015-03-23 09:59:57 -0700 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2015-03-23 10:00:57 -0700 |
commit | 8931cc1dd5de85c3c4b4a348b31321a902a57670 (patch) | |
tree | c3700e1ac876e873272274e33c71416beabe7627 | |
parent | 10bb15cdd444777cf2dd47f8d7e4fb559c4ace8b (diff) |
Adding a test to check the openssl version we are using.
-rw-r--r-- | test/core/tsi/transport_security_test.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/core/tsi/transport_security_test.c b/test/core/tsi/transport_security_test.c index c5882af966..d591e43faa 100644 --- a/test/core/tsi/transport_security_test.c +++ b/test/core/tsi/transport_security_test.c @@ -39,10 +39,15 @@ #include <grpc/support/log.h> #include <grpc/support/useful.h> +#include <openssl/crypto.h> + #include "src/core/support/string.h" #include "src/core/tsi/ssl_transport_security.h" #include "test/core/util/test_config.h" +/* Currently points to 1.0.2a. */ +#define GRPC_MIN_OPENSSL_VERSION_NUMBER 0x1000201fL + typedef struct { /* 1 if success, 0 if failure. */ int expected; @@ -296,8 +301,13 @@ static void test_peer_matches_name(void) { } } +static void test_openssl_version(void) { + GPR_ASSERT(OPENSSL_VERSION_NUMBER >= GRPC_MIN_OPENSSL_VERSION_NUMBER); +} + int main(int argc, char **argv) { grpc_test_init(argc, argv); test_peer_matches_name(); + test_openssl_version(); return 0; } |