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.

Parameters:
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).
Returns:
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)
            EC_GROUP_free(key->group);
      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