diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-09-09 11:33:22 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-09-09 11:33:22 +0200 |
commit | 9a8474986d53be944b0f91b10199c5986a43069f (patch) | |
tree | ad3b7c22779b05013c6ef8511d76df4aa502aa87 /tests | |
parent | 66d84332ce3bed6842461f927c9d44658fff3612 (diff) | |
download | gnutls-9a8474986d53be944b0f91b10199c5986a43069f.tar.gz |
Need to initialize gnutls to avoid crash.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/openssl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/openssl.c b/tests/openssl.c index 2fa9f8c3ca..5cffa25b6c 100644 --- a/tests/openssl.c +++ b/tests/openssl.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2005 Free Software Foundation + * Copyright (C) 2004, 2005, 2008 Free Software Foundation * * Author: Simon Josefsson * @@ -36,6 +36,9 @@ doit (void) MD5_CTX c; unsigned char md[MD5_DIGEST_LENGTH]; + if (gnutls_global_init() != 0) + fail ("gnutls_global_init\n"); + if (!gnutls_check_version (LIBGNUTLS_VERSION)) success ("gnutls_check_version ERROR\n"); |