Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
8931cc1d
Commit
8931cc1d
authored
10 years ago
by
Julien Boeuf
Browse files
Options
Downloads
Patches
Plain Diff
Adding a test to check the openssl version we are using.
parent
10bb15cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/core/tsi/transport_security_test.c
+10
-0
10 additions, 0 deletions
test/core/tsi/transport_security_test.c
with
10 additions
and
0 deletions
test/core/tsi/transport_security_test.c
+
10
−
0
View file @
8931cc1d
...
...
@@ -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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment