Logo Search packages:      
Sourcecode: openssl version File versions  Download package

int ECDSA_set_method ( EC_KEY *  eckey,
const ECDSA_METHOD *  meth 

ECDSA_set_method sets method to be used for the ECDSA operations

eckey pointer to the EC_KEY object
meth pointer to the new method
1 on success and 0 otherwise

Definition at line 84 of file ecs_lib.c.

References ECDSA_set_method().

Referenced by ECDSA_set_method().

        const ECDSA_METHOD *mtmp;
      ECDSA_DATA *ecdsa;

      ecdsa = ecdsa_check(eckey);

      if (ecdsa == NULL)
            return 0;

        mtmp = ecdsa->meth;
      if (ecdsa->engine)
            ecdsa->engine = NULL;
        ecdsa->meth = meth;

        return 1;

Generated by  Doxygen 1.6.0   Back to index