Check the result of EC_GROUP_new_curve_* calls
Check the result of EC_GROUP_new_curve_* calls

The FIPS-enabled OpenSSL on RHEL disallows the use of < 256 bit prime
fields (like secp128r1 or secp160k1), and the EC_GROUP_new_cuve_GFp
call would return a NULL pointer for such fields. Not checking for
this failure could result in a segfault in the NIF code.

mikpe/otp,potatosalad/otp,massemanet/otp,ferd/otp,lemenkov/otp,aboroska/otp,hairyhum/otp,dgud/otp,rlipscombe/otp,hairyhum/otp,lemenkov/otp,uabboli/otp,RoadRunnr/otp,goertzenator/otp,bugs-erlang-org/otp,psyeugenic/otp,emacsmirror/erlang,bjorng/otp,vinoski/otp,dgud/otp,lightcyphers/otp,saleyn/otp,lrascao/otp,bernardd/otp,rlipscombe/otp,potatosalad/otp,ferd/otp,massemanet/otp,matwey/otp,RoadRunnr/otp,neeraj9/otp,matwey/otp,emile/otp,vladdu/otp,lightcyphers/otp,falkevik/otp,lemenkov/otp,bsmr-erlang/otp,johanclaesson/otp,hairyhum/otp,rlipscombe/otp,rlipscombe/otp,uabboli/otp,bugs-erlang-org/otp,ahmedshafeeq/otp,bsmr-erlang/otp,goertzenator/otp,saleyn/otp,vladdu/otp,RoadRunnr/otp,jj1bdx/otp,RaimoNiskanen/otp,fenollp/otp,dgud/otp,hairyhum/otp,aboroska/otp,bernardd/otp,legoscia/otp,lemenkov/otp,aboroska/otp,johanclaesson/otp,basho/otp,dgud/otp,rlipscombe/otp,basho/otp,rlipscombe/otp,matwey/otp,RoadRunnr/otp,erlang/otp,aboroska/otp,RoadRunnr/otp,goertzenator/otp,dumbbell/otp,goertzenator/otp,aboroska/otp,ahmedshafeeq/otp,ahmedshafeeq/otp,fenollp/otp,bjorng/otp,bjorng/otp,massemanet/otp,goertzenator/otp,hairyhum/otp,release-project/otp,electricimp/otp,emacsmirror/erlang,basho/otp,isvilen/otp,bsmr-erlang/otp,vinoski/otp,electricimp/otp,lrascao/otp,vladdu/otp,jj1bdx/otp,kvakvs/otp,matwey/otp,vladdu/otp,dgud/otp,erlang/otp,emacsmirror/erlang,weisslj/otp,release-project/otp,tuncer/otp,bernardd/otp,mikpe/otp,uabboli/otp,emacsmirror/erlang,weisslj/otp,weisslj/otp,saleyn/otp,basho/otp,legoscia/otp,g-andrade/otp,derek121/otp,tuncer/otp,RoadRunnr/otp,basho/otp,neeraj9/otp,lemenkov/otp,release-project/otp,cobusc/otp,emacsmirror/erlang,uabboli/otp,weisslj/otp,ahmedshafeeq/otp,isvilen/otp,ferd/otp,cobusc/otp,bugs-erlang-org/otp,msantos/otp,psyeugenic/otp,basho/otp,goertzenator/otp,erlang/otp,aboroska/otp,kvakvs/otp,derek121/otp,dgud/otp,uabboli/otp,lightcyphers/otp,johanclaesson/otp,vinoski/otp,fenollp/otp,g-andrade/otp,saleyn/otp,getong/otp,vladdu/otp,neeraj9/otp,psyeugenic/otp,getong/otp,bsmr-erlang/otp,legoscia/otp,legoscia/otp,kvakvs/otp,emacsmirror/erlang,RaimoNiskanen/otp,goertzenator/otp,erlang/otp,saleyn/otp,tuncer/otp,legoscia/otp,kvakvs/otp,fenollp/otp,dumbbell/otp,emile/otp,getong/otp,saleyn/otp,erlang/otp,kvakvs/otp,tuncer/otp,g-andrade/otp,tuncer/otp,ahmedshafeeq/otp,bjorng/otp,basho/otp,erlang/otp,vinoski/otp,emacsmirror/erlang,rlipscombe/otp,isvilen/otp,massemanet/otp,falkevik/otp,electricimp/otp,bjorng/otp,potatosalad/otp,legoscia/otp,isvilen/otp,dumbbell/otp,bernardd/otp,g-andrade/otp,isvilen/otp,fenollp/otp,mikpe/otp,kvakvs/otp,kvakvs/otp,ferd/otp,lrascao/otp,saleyn/otp,uabboli/otp,ahmedshafeeq/otp,lrascao/otp,kvakvs/otp,dumbbell/otp,emile/otp,erlang/otp,mikpe/otp,psyeugenic/otp,rlipscombe/otp,dumbbell/otp,aboroska/otp,legoscia/otp,falkevik/otp,g-andrade/otp,mikpe/otp,bernardd/otp,falkevik/otp,johanclaesson/otp,ahmedshafeeq/otp,saleyn/otp,dgud/otp,matwey/otp,msantos/otp,ferd/otp,electricimp/otp,cobusc/otp,potatosalad/otp,aboroska/otp,getong/otp,electricimp/otp,msantos/otp,dumbbell/otp,derek121/otp,emile/otp,getong/otp,RaimoNiskanen/otp,basho/otp,cobusc/otp,derek121/otp,lrascao/otp,electricimp/otp,vinoski/otp,lrascao/otp,bugs-erlang-org/otp,erlang/otp,tuncer/otp,johanclaesson/otp,lemenkov/otp,psyeugenic/otp,lightcyphers/otp,RaimoNiskanen/otp,potatosalad/otp,legoscia/otp,getong/otp,matwey/otp,saleyn/otp,fenollp/otp,vinoski/otp,isvilen/otp,erlang/otp,hairyhum/otp,goertzenator/otp,weisslj/otp,fenollp/otp,g-andrade/otp,bugs-erlang-org/otp,kvakvs/otp,electricimp/otp,RaimoNiskanen/otp,release-project/otp,dumbbell/otp,bsmr-erlang/otp,potatosalad/otp,dgud/otp,potatosalad/otp,jj1bdx/otp,lemenkov/otp,lrascao/otp,massemanet/otp,release-project/otp,bernardd/otp,cobusc/otp,msantos/otp,bsmr-erlang/otp,legoscia/otp,ahmedshafeeq/otp,ferd/otp,msantos/otp,fenollp/otp,derek121/otp,tuncer/otp,ferd/otp,aboroska/otp,weisslj/otp,RoadRunnr/otp,bugs-erlang-org/otp,potatosalad/otp,hairyhum/otp,g-andrade/otp,falkevik/otp,emile/otp,massemanet/otp,isvilen/otp,rlipscombe/otp,dgud/otp,bernardd/otp,uabboli/otp,release-project/otp,psyeugenic/otp,bjorng/otp,vladdu/otp,jj1bdx/otp,mikpe/otp,lrascao/otp,jj1bdx/otp,mikpe/otp,neeraj9/otp,johanclaesson/otp,RaimoNiskanen/otp,neeraj9/otp,johanclaesson/otp,matwey/otp,release-project/otp,dumbbell/otp,lemenkov/otp,getong/otp,isvilen/otp,weisslj/otp,vladdu/otp,getong/otp,cobusc/otp,uabboli/otp,psyeugenic/otp,jj1bdx/otp,jj1bdx/otp,weisslj/otp,weisslj/otp,emile/otp,release-project/otp,derek121/otp,derek121/otp,vinoski/otp,neeraj9/otp,bugs-erlang-org/otp,vinoski/otp,g-andrade/otp,g-andrade/otp,msantos/otp,mikpe/otp,dumbbell/otp,ferd/otp,hairyhum/otp,tuncer/otp,vladdu/otp,electricimp/otp,electricimp/otp,fenollp/otp,bjorng/otp,lrascao/otp,falkevik/otp,bsmr-erlang/otp,RaimoNiskanen/otp,emile/otp,massemanet/otp,bernardd/otp,isvilen/otp,ahmedshafeeq/otp,vladdu/otp,lightcyphers/otp,bjorng/otp,derek121/otp,emile/otp,jj1bdx/otp,dumbbell/otp,neeraj9/otp,matwey/otp,bernardd/otp,goertzenator/otp,g-andrade/otp,erlang/otp,msantos/otp,bsmr-erlang/otp,RoadRunnr/otp,RoadRunnr/otp,mikpe/otp,emile/otp,massemanet/otp,falkevik/otp,falkevik/otp,ferd/otp,dgud/otp,emacsmirror/erlang,neeraj9/otp,getong/otp,rlipscombe/otp,massemanet/otp,uabboli/otp,emacsmirror/erlang,tuncer/otp,jj1bdx/otp,lightcyphers/otp,getong/otp,emacsmirror/erlang,lightcyphers/otp,matwey/otp,RaimoNiskanen/otp,mikpe/otp,bjorng/otp,bsmr-erlang/otp,bugs-erlang-org/otp,vinoski/otp,bjorng/otp,release-project/otp,potatosalad/otp,potatosalad/otp,psyeugenic/otp,msantos/otp,RaimoNiskanen/otp,basho/otp,cobusc/otp,vinoski/otp,lightcyphers/otp,falkevik/otp,johanclaesson/otp,isvilen/otp,cobusc/otp,jj1bdx/otp