return NULL;
}
+ if (silc_acc_get_public_key(NULL, public_key)) {
+ SILC_LOG_DEBUG(("Pubilc key %p is already accelerated", public_key));
+ return NULL;
+ }
+
/* Check that accelerator supports this public key algorithm */
alg = silc_pkcs_get_algorithm(public_key);
if (!alg)
return NULL;
}
+ if (silc_acc_get_private_key(NULL, private_key)) {
+ SILC_LOG_DEBUG(("Private key %p is already accelerated", private_key));
+ return NULL;
+ }
+
/* Check that accelerator supports this private key algorithm */
alg = silc_pkcs_get_algorithm(private_key);
if (!alg)