summaryrefslogtreecommitdiff
path: root/package/libs/polarssl/patches/210-gen_key_config_fix.patch
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 18:11:33 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-16 18:11:33 +0200
commit8db96e88e082a20d279dafcde215c64bc7e92f01 (patch)
treef8064d1448b72614c491e204c42e9a518f5928a4 /package/libs/polarssl/patches/210-gen_key_config_fix.patch
parent69e88fbf08b1a2bafeb83b0f0f1e86481bd5f430 (diff)
downloadmtk-20170518-8db96e88e082a20d279dafcde215c64bc7e92f01.zip
mtk-20170518-8db96e88e082a20d279dafcde215c64bc7e92f01.tar.gz
mtk-20170518-8db96e88e082a20d279dafcde215c64bc7e92f01.tar.bz2
package/libs/*ssl: probably from OpenWRT
Diffstat (limited to 'package/libs/polarssl/patches/210-gen_key_config_fix.patch')
-rw-r--r--package/libs/polarssl/patches/210-gen_key_config_fix.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/package/libs/polarssl/patches/210-gen_key_config_fix.patch b/package/libs/polarssl/patches/210-gen_key_config_fix.patch
deleted file mode 100644
index b17e744..0000000
--- a/package/libs/polarssl/patches/210-gen_key_config_fix.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- a/programs/pkey/gen_key.c
-+++ b/programs/pkey/gen_key.c
-@@ -215,7 +215,9 @@ int main( int argc, char *argv[] )
-
- opt.type = DFL_TYPE;
- opt.rsa_keysize = DFL_RSA_KEYSIZE;
-+#if defined(POLARSSL_ECP_C)
- opt.ec_curve = DFL_EC_CURVE;
-+#endif
- opt.filename = DFL_FILENAME;
- opt.format = DFL_FORMAT;
- opt.use_dev_random = DFL_USE_DEV_RANDOM;
-@@ -231,8 +233,10 @@ int main( int argc, char *argv[] )
- {
- if( strcmp( q, "rsa" ) == 0 )
- opt.type = POLARSSL_PK_RSA;
-+#if defined(POLARSSL_ECP_C)
- else if( strcmp( q, "ec" ) == 0 )
- opt.type = POLARSSL_PK_ECKEY;
-+#endif
- else
- goto usage;
- }
-@@ -251,12 +255,14 @@ int main( int argc, char *argv[] )
- if( opt.rsa_keysize < 1024 || opt.rsa_keysize > 8192 )
- goto usage;
- }
-+#if defined(POLARSSL_ECP_C)
- else if( strcmp( p, "ec_curve" ) == 0 )
- {
- if( ( curve_info = ecp_curve_info_from_name( q ) ) == NULL )
- goto usage;
- opt.ec_curve = curve_info->grp_id;
- }
-+#endif
- else if( strcmp( p, "filename" ) == 0 )
- opt.filename = q;
- else if( strcmp( p, "use_dev_random" ) == 0 )