src/lib/crypto.c
X509_KEYPAIR *crypto_keypair_new(void)
{
   X509_KEYPAIR *keypair;

   /* Allocate our keypair structure */
   keypair = (X509_KEYPAIR *)malloc(sizeof(X509_KEYPAIR));

   /* Initialize our keypair structure */
   keypair->keyid = NULL;
   keypair->pubkey = NULL;
   keypair->privkey = NULL;

   return keypair;
}
/*
 * Create a new keypair object.
 *  Returns: A pointer to a X509 KEYPAIR object on success.
 *           NULL on failure.
 */
Create a new keypair object.
Returns: A pointer to a X509 KEYPAIR object on success.
NULL on failure.
Create a new keypair object . Returns : A pointer to a X509 KEYPAIR object on success . NULL on failure .
X509_KEYPAIR *crypto_keypair_new(void)
{
   X509_KEYPAIR *keypair;
   keypair = (X509_KEYPAIR *)malloc(sizeof(X509_KEYPAIR));
   keypair->keyid = NULL;
   keypair->pubkey = NULL;
   keypair->privkey = NULL;
   return keypair;
}
X509_KEYPAIR * crypto_keypair_new ( void ) { X509_KEYPAIR * keypair ; keypair = ( X509_KEYPAIR * ) malloc ( sizeof ( X509_KEYPAIR ) ) ; keypair -> keyid = NULL ; keypair -> pubkey = NULL ; keypair -> privkey = NULL ; return keypair ; }
Create a new keypair object.
Create a new keypair object .
/* Allocate our keypair structure */ /* Initialize our keypair structure */