From 66b78b2d166d68e48193e8c33f6756caa3e73714 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Fri, 25 Mar 2011 14:22:50 +0000
Subject: [PATCH] - Added missing rsa_init() call in x509parse_self_test()
---
library/x509parse.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/library/x509parse.c b/library/x509parse.c
index df671eff5..b13fbdefc 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -3036,6 +3036,8 @@ int x509_self_test( int verbose )
i = strlen( test_ca_key );
j = strlen( test_ca_pwd );
+ rsa_init( &rsa, RSA_PKCS_V15, 0 );
+
if( ( ret = x509parse_key( &rsa,
(unsigned char *) test_ca_key, i,
(unsigned char *) test_ca_pwd, j ) ) != 0 )