moved test to openssl

pull/13324/head
Louis Schmieder 2022-02-02 12:50:18 +00:00 committed by GitHub
parent 8f9e37a58f
commit 85d6900d40
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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)