Yes. It also works.

Regards,
Marcelo Cerri

On Thu, Nov 07, 2013 at 02:07:41PM +0100, Dr. Stephen Henson wrote:
> On Thu, Nov 07, 2013, Marcelo Cerri wrote:
> 
> > Hi, any news on that?
> > 
> > On Tue, Oct 29, 2013 at 05:01:03PM -0200, Marcelo Cerri wrote:
> > > In some platforms, such as POWER, char is defined as unsigned. This
> > > patch fix a problem when comparing a char to -1.
> > > 
> > > Signed-off-by: Marcelo Cerri <mhce...@linux.vnet.ibm.com>
> > > ---
> > >  crypto/ec/ec_pmeth.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/crypto/ec/ec_pmeth.c b/crypto/ec/ec_pmeth.c
> > > index e477418..933bf43 100644
> > > --- a/crypto/ec/ec_pmeth.c
> > > +++ b/crypto/ec/ec_pmeth.c
> > > @@ -319,7 +319,7 @@ static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, 
> > > int p1, void *p2)
> > >           case EVP_PKEY_CTRL_EC_ECDH_COFACTOR:
> > >           if (p1 == -2)
> > >                   {
> > > -                 if (dctx->cofactor_mode != -1)
> > > +                 if (dctx->cofactor_mode != ((char) -1))
> > >                           return dctx->cofactor_mode;
> > >                   else
> > >                           {
> > > -- 
> > > 1.7.12
> > > 
> 
> Does making cofactor mode "signed char" also fix this for you?
> 
> Steve.
> --
> Dr Stephen N. Henson. OpenSSL project core developer.
> Commercial tech support now available see: http://www.openssl.org
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> Development Mailing List                       openssl-dev@openssl.org
> Automated List Manager                           majord...@openssl.org
> 

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to