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

EC_GROUP* EC_GROUP_dup ( const EC_GROUP src)

Creates a new EC_GROUP object and copies the copies the content form src to the newly created EC_KEY object

srcsource EC_GROUP object
newly created EC_GROUP object or NULL in case of an error.

Definition at line 250 of file ec_lib.c.

References EC_GROUP_copy(), EC_GROUP_dup(), EC_GROUP_free(), and EC_GROUP_new().

Referenced by EC_GROUP_dup(), and EC_KEY_set_group().

      EC_GROUP *t = NULL;
      int ok = 0;

      if (a == NULL) return NULL;

      if ((t = EC_GROUP_new(a->meth)) == NULL) return(NULL);
      if (!EC_GROUP_copy(t, a)) goto err;

      ok = 1;

      if (!ok)
            if (t) EC_GROUP_free(t);
            return NULL;
      else return t;

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