[openssl-dev] Call for testing: OpenSSH 7.2

Dr. Stephen Henson steve at openssl.org
Tue Feb 16 02:52:51 UTC 2016


On Mon, Feb 15, 2016, The Doctor wrote:

> Just tested this on the old BSD/OS machine
> 
> works with openssl 1.0.2X
> 
> Openssl 1.1.X  issues
> 
> cipher.h  in openssl 1.1  needs to read
> 
> struct sshcipher;
> struct sshcipher_ctx {
>         int     plaintext;
>         int     encrypt;
>         struct evp_cipher_ctx_st *evp;
>         struct chachapoly_ctx cp_ctx; /* XXX union with evp? */
>         struct aesctr_ctx ac_ctx; /* XXX union with evp? */
>         const struct sshcipher *cipher;
> };
>    
> 
> I am running into issues with sshkey.c
> 
> 
> line 3787  
> 
>   if (pk->type == EVP_PKEY_RSA &&
> 
> line 3802
> 
>       } else if (pk->type == EVP_PKEY_DSA &&
> 
> line 3814
> 
> } else if (pk->type == EVP_PKEY_EC &&
> 
> Now  
> 
>   EVP_PKEY *pk = NULL;
> 

The EVP_PKEY structure is now opaque and so you need to call the accessor
function EVP_PKEY_id(pk) instead. That function exists in OpenSSL 1.0 and
later though not 0.9.8.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org


More information about the openssl-dev mailing list