mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix int_ctx_new() error when use 1.1.1n sm2 key and ec method engine
Signed-off-by: lan1120 <lanming@huawei.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21170)
(cherry picked from commit 4c4fefa5c7)
			
			
This commit is contained in:
		
							parent
							
								
									a6937244f5
								
							
						
					
					
						commit
						832dc72428
					
				|  | @ -722,6 +722,7 @@ static void detect_foreign_key(EVP_PKEY *pkey) | |||
|         break; | ||||
| #  ifndef OPENSSL_NO_EC | ||||
|     case EVP_PKEY_SM2: | ||||
|         break; | ||||
|     case EVP_PKEY_EC: | ||||
|         pkey->foreign = pkey->pkey.ec != NULL | ||||
|                         && ossl_ec_key_is_foreign(pkey->pkey.ec); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue