openssl: always build with GOST engine support
The packages feed has a proposed package for a GOST engine, which needs support from the main openssl library. It is a default option in OpenSSL. All that needs to be done here is to not disable it. Package increases by a net 1-byte, so it is not really really worth keeping this optional. This commit also includes a commented-out example engine configuration in openssl.cnf, as it is done for other available engines. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
		 Eneas U de Queiroz
					Eneas U de Queiroz
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							06356f0020
						
					
				
				
					commit
					12a80e44b9
				
			| @@ -293,15 +293,4 @@ config OPENSSL_WITH_ASYNC | |||||||
| 		initiate crypto operations asynchronously. In order to work | 		initiate crypto operations asynchronously. In order to work | ||||||
| 		this will require the presence of an async capable engine. | 		this will require the presence of an async capable engine. | ||||||
|  |  | ||||||
| config OPENSSL_WITH_GOST |  | ||||||
| 	bool |  | ||||||
| 	prompt "Prepare library for GOST engine" |  | ||||||
| 	depends on OPENSSL_ENGINE |  | ||||||
| 	help |  | ||||||
| 		This option prepares the library to accept engine support |  | ||||||
| 		for Russian GOST crypto algorithms. |  | ||||||
| 		The gost engine is not included in standard openwrt feeds. |  | ||||||
| 		To build such engine yourself, see: |  | ||||||
| 		https://github.com/gost-engine/engine |  | ||||||
|  |  | ||||||
| endif | endif | ||||||
|   | |||||||
| @@ -11,7 +11,7 @@ PKG_NAME:=openssl | |||||||
| PKG_BASE:=1.1.1 | PKG_BASE:=1.1.1 | ||||||
| PKG_BUGFIX:=j | PKG_BUGFIX:=j | ||||||
| PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX) | PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX) | ||||||
| PKG_RELEASE:=1 | PKG_RELEASE:=2 | ||||||
| PKG_USE_MIPS16:=0 | PKG_USE_MIPS16:=0 | ||||||
| ENGINES_DIR=engines-1.1 | ENGINES_DIR=engines-1.1 | ||||||
|  |  | ||||||
| @@ -52,7 +52,6 @@ PKG_CONFIG_DEPENDS:= \ | |||||||
| 	CONFIG_OPENSSL_WITH_DTLS \ | 	CONFIG_OPENSSL_WITH_DTLS \ | ||||||
| 	CONFIG_OPENSSL_WITH_EC2M \ | 	CONFIG_OPENSSL_WITH_EC2M \ | ||||||
| 	CONFIG_OPENSSL_WITH_ERROR_MESSAGES \ | 	CONFIG_OPENSSL_WITH_ERROR_MESSAGES \ | ||||||
| 	CONFIG_OPENSSL_WITH_GOST \ |  | ||||||
| 	CONFIG_OPENSSL_WITH_IDEA \ | 	CONFIG_OPENSSL_WITH_IDEA \ | ||||||
| 	CONFIG_OPENSSL_WITH_MDC2 \ | 	CONFIG_OPENSSL_WITH_MDC2 \ | ||||||
| 	CONFIG_OPENSSL_WITH_NPN \ | 	CONFIG_OPENSSL_WITH_NPN \ | ||||||
| @@ -289,10 +288,6 @@ else | |||||||
|   OPENSSL_OPTIONS += no-engine |   OPENSSL_OPTIONS += no-engine | ||||||
| endif | endif | ||||||
|  |  | ||||||
| ifndef CONFIG_OPENSSL_WITH_GOST |  | ||||||
|   OPENSSL_OPTIONS += no-gost |  | ||||||
| endif |  | ||||||
|  |  | ||||||
| ifndef CONFIG_OPENSSL_WITH_DTLS | ifndef CONFIG_OPENSSL_WITH_DTLS | ||||||
|   OPENSSL_OPTIONS += no-dtls |   OPENSSL_OPTIONS += no-dtls | ||||||
| endif | endif | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| --- a/apps/openssl.cnf | --- a/apps/openssl.cnf | ||||||
| +++ b/apps/openssl.cnf | +++ b/apps/openssl.cnf | ||||||
| @@ -22,6 +22,82 @@ oid_section		= new_oids | @@ -22,6 +22,99 @@ oid_section		= new_oids | ||||||
|  # (Alternatively, use a configuration file that has only |  # (Alternatively, use a configuration file that has only | ||||||
|  # X.509v3 extensions in its main [= default] section.) |  # X.509v3 extensions in its main [= default] section.) | ||||||
|   |   | ||||||
| @@ -14,6 +14,7 @@ | |||||||
| +#devcrypto=devcrypto | +#devcrypto=devcrypto | ||||||
| +#afalg=afalg | +#afalg=afalg | ||||||
| +#padlock=padlock | +#padlock=padlock | ||||||
|  | +##gost=gost | ||||||
| + | + | ||||||
| +[afalg] | +[afalg] | ||||||
| +# Leave this alone and configure algorithms with CIPERS/DIGESTS below | +# Leave this alone and configure algorithms with CIPERS/DIGESTS below | ||||||
| @@ -79,6 +80,22 @@ | |||||||
| + | + | ||||||
| +[padlock] | +[padlock] | ||||||
| +default_algorithms = ALL | +default_algorithms = ALL | ||||||
|  | + | ||||||
|  | +[gost] | ||||||
|  | +default_algorithms = ALL | ||||||
|  | +# CRYPT_PARAMS: OID of default GOST 28147-89 parameters It allows the | ||||||
|  | +# user to choose between different parameter sets of symmetric cipher | ||||||
|  | +# algorithm. RFC 4357 specifies several parameters for the | ||||||
|  | +# GOST 28147-89 algorithm, but OpenSSL doesn't provide user interface | ||||||
|  | +# to choose one when encrypting. So use engine configuration parameter | ||||||
|  | +# instead. | ||||||
|  | +# Value of this parameter can be either short name, defined in OpenSSL | ||||||
|  | +# obj_dat.h header file or numeric representation of OID, defined in | ||||||
|  | +# RFC 4357.  Defaults to id-tc26-gost-28147-param-Z | ||||||
|  | +#CRYPT_PARAMS = id-tc26-gost-28147-param-Z | ||||||
|  | + | ||||||
|  | +# PBE_PARAMS: Shortname of default digest alg for PBE | ||||||
|  | +#PBE_PARAMS = | ||||||
| + | + | ||||||
|  [ new_oids ] |  [ new_oids ] | ||||||
|   |   | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user