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

int EC_KEY_set_group ( EC_KEY key,
const EC_GROUP group 

Sets the EC_GROUP of a EC_KEY object.

keyEC_KEY object
groupEC_GROUP to use in the EC_KEY object (note: the EC_KEY object will use an own copy of the EC_GROUP).
1 on success and 0 if an error occurred.

Definition at line 379 of file ec_key.c.

References EC_GROUP_dup(), EC_GROUP_free(), and EC_KEY_set_group().

Referenced by EC_KEY_set_group().

      if (key->group != NULL)
      key->group = EC_GROUP_dup(group);
      return (key->group == NULL) ? 0 : 1;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index