"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "crypto/ec/ec_asn1.c" between
openssl-1.0.2t.tar.gz and openssl-1.0.2u.tar.gz

About: OpenSSL is a toolkit implementing the Transport Layer Security (TLS) and Secure Sockets Layer (SSL v2/v3) protocols as well as a full-strength general purpose cryptography library. Long Term Support (LTS) version (support will be provided until end of 2019).

ec_asn1.c  (openssl-1.0.2t):ec_asn1.c  (openssl-1.0.2u)
skipping to change at line 976 skipping to change at line 976
EC_GROUP_free(ret); EC_GROUP_free(ret);
ret = named_group; ret = named_group;
/* /*
* Set the flag so that EC_GROUPs created from explicit parameters are * Set the flag so that EC_GROUPs created from explicit parameters are
* serialized using explicit parameters by default. * serialized using explicit parameters by default.
* *
* 0x0 = OPENSSL_EC_EXPLICIT_CURVE * 0x0 = OPENSSL_EC_EXPLICIT_CURVE
*/ */
EC_GROUP_set_asn1_flag(ret, 0x0); EC_GROUP_set_asn1_flag(ret, 0x0);
/*
* If the input params do not contain the optional seed field we make
* sure it is not added to the returned group.
*
* The seed field is not really used inside libcrypto anyway, and
* adding it to parsed explicit parameter keys would alter their DER
* encoding output (because of the extra field) which could impact
* applications fingerprinting keys by their DER encoding.
*/
if (params->curve->seed == NULL) {
if (EC_GROUP_set_seed(ret, NULL, 0) != 1)
goto err;
}
} }
ok = 1; ok = 1;
err: err:
if (!ok) { if (!ok) {
if (ret) if (ret)
EC_GROUP_free(ret); EC_GROUP_free(ret);
ret = NULL; ret = NULL;
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)