]> tinc-vpn.org Git - tinc/blobdiff - src/openssl/rsagen.c
Replace pointers to cipher_t/digest_t in connection_t with structs.
[tinc] / src / openssl / rsagen.c
index 3dd34e23e1710f93db97009fa273e9a72ff0b1cf..277df2312d6afe37a87f1b145ef77de55db6cb81 100644 (file)
@@ -81,7 +81,7 @@ rsa_t *rsa_generate(size_t bits, unsigned long exponent) {
        BN_set_word(bn_e, exponent);
        BN_GENCB_set(cb, indicator, NULL);
 
-       int result = RSA_generate_key_ex(rsa, bits, bn_e, cb);
+       int result = RSA_generate_key_ex(rsa, (int) bits, bn_e, cb);
 
        BN_GENCB_free(cb);
        BN_free(bn_e);