diff --git a/vlib/net/openssl/c.v b/vlib/net/openssl/c.v index 1eb584361d..20397769ee 100644 --- a/vlib/net/openssl/c.v +++ b/vlib/net/openssl/c.v @@ -46,7 +46,6 @@ pub struct SSL_METHOD { pub struct OPENSSL_INIT_SETTINGS { } - [typedef] struct C.RSA { engine voidptr @@ -139,7 +138,7 @@ fn C.TLSv1_2_method() voidptr fn C.OPENSSL_init_ssl(opts u64, settings &OPENSSL_INIT_SETTINGS) int -/* RSA */ +// RSA fn C.RSA_generate_key_ex(&C.RSA, int, &C.BIGNUM, voidptr) int fn C.RSA_generate_key(int, u64, voidptr, voidptr) &C.RSA fn C.RSA_new() &C.RSA diff --git a/vlib/crypto/rsa/rsa_test.v b/vlib/net/openssl/rsa_test.v similarity index 75% rename from vlib/crypto/rsa/rsa_test.v rename to vlib/net/openssl/rsa_test.v index c0325a71e5..b4b8b3e67e 100644 --- a/vlib/crypto/rsa/rsa_test.v +++ b/vlib/net/openssl/rsa_test.v @@ -1,5 +1,10 @@ import crypto.rsa +/* +This test has to be moved here, because in the rsa there is an strange error. +OpenSSL should be a correct place aswell. +*/ + fn test_rsa() { instance := rsa.gen_key_pair(1024, 3) or { eprintln(err)