src/lib/crypto.c
void crypto_keypair_free(X509_KEYPAIR *keypair)
{
   if (keypair->pubkey) {
      EVP_PKEY_free(keypair->pubkey);
   }
   if (keypair->privkey) {
      EVP_PKEY_free(keypair->privkey);
   }
   if (keypair->keyid) {
      ASN1_OCTET_STRING_free(keypair->keyid);
   }
   free(keypair);
}
/*
 * Free memory associated with a keypair object.
 */
Free memory associated with a keypair object.
Free memory associated with a keypair object .
void crypto_keypair_free(X509_KEYPAIR *keypair)
{
   if (keypair->pubkey) {
      EVP_PKEY_free(keypair->pubkey);
   }
   if (keypair->privkey) {
      EVP_PKEY_free(keypair->privkey);
   }
   if (keypair->keyid) {
      ASN1_OCTET_STRING_free(keypair->keyid);
   }
   free(keypair);
}
void crypto_keypair_free ( X509_KEYPAIR * keypair ) { if ( keypair -> pubkey ) { EVP_PKEY_free ( keypair -> pubkey ) ; } if ( keypair -> privkey ) { EVP_PKEY_free ( keypair -> privkey ) ; } if ( keypair -> keyid ) { ASN1_OCTET_STRING_free ( keypair -> keyid ) ; } free ( keypair ) ; }
Free memory associated with a keypair object.
Free memory associated with a keypair object .