/* Ok. Now we have the data. Create the asn1 structures
*/
+
+ /* first make sure that no previously allocated data are leaked */
+ if (c2 != ASN1_TYPE_EMPTY)
+ {
+ asn1_delete_structure (c2);
+ c2 = ASN1_TYPE_EMPTY;
+ }
if ((result = asn1_create_element
(_gnutls_get_gnutls_asn (), "GNUTLS.RSAPrivateKey", c2))
/* Ok. Now we have the data. Create the asn1 structures
*/
+ /* first make sure that no previously allocated data are leaked */
+ if (c2 != ASN1_TYPE_EMPTY)
+ {
+ asn1_delete_structure (c2);
+ c2 = ASN1_TYPE_EMPTY;
+ }
+
if ((result = asn1_create_element
(_gnutls_get_gnutls_asn (), "GNUTLS.DSAPrivateKey", c2))
!= ASN1_SUCCESS)