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

EC_KEY* EC_KEY_dup ( const EC_KEY src)

Creates a new EC_KEY object and copies the content from src to it.

srcthe source EC_KEY object
newly created EC_KEY object or NULL if an error occurred.

Definition at line 204 of file ec_key.c.

References EC_KEY_copy(), EC_KEY_dup(), EC_KEY_free(), and EC_KEY_new().

Referenced by EC_KEY_dup().

      EC_KEY *ret = EC_KEY_new();
      if (ret == NULL)
            return NULL;
      if (EC_KEY_copy(ret, ec_key) == NULL)
            return NULL;
      return ret;

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