Add EVP test program.

This commit is contained in:
Ben Laurie
2001-08-18 13:53:01 +00:00
parent 354c3ace73
commit 0e36019977
10 changed files with 333 additions and 19 deletions

View File

@@ -96,3 +96,17 @@ void ENGINE_load_engine_ciphers(ENGINE *e)
for(n=0 ; n < sk_ENGINE_EVP_CIPHER_num(e->ciphers) ; ++n)
EVP_add_cipher(sk_ENGINE_EVP_CIPHER_value(e->ciphers,n)->cipher);
}
const EVP_CIPHER *ENGINE_get_cipher_by_name(ENGINE *e,const char *name)
{
int n;
for(n=0 ; n < ENGINE_cipher_num(e) ; ++n)
{
const EVP_CIPHER *c=ENGINE_get_cipher(e,n);
if(!strcmp(EVP_CIPHER_name(c),name))
return c;
}
return NULL;
}