Fixed pluto smartcard support after introducing encryption schemes

This commit is contained in:
Martin Willi
2010-08-30 10:14:45 +02:00
parent 1bc8690f54
commit 45684ee65c
+1 -1
View File
@@ -1451,7 +1451,7 @@ bool scx_encrypt(smartcard_t *sc, const u_char *in, size_t inlen, u_char *out,
{ {
return FALSE; return FALSE;
} }
key->encrypt(key, plain_text, &cipher_text); key->encrypt(key, ENCRYPT_RSA_PKCS1, plain_text, &cipher_text);
key->destroy(key); key->destroy(key);
if (cipher_text.ptr == NULL) if (cipher_text.ptr == NULL)