mirror of
				https://github.com/hiskang/acme.sh
				synced 2025-10-31 02:17:18 +00:00 
			
		
		
		
	compatible to openssl 0.9 for hmac function
This commit is contained in:
		
							parent
							
								
									2aec627503
								
							
						
					
					
						commit
						c70432996a
					
				
							
								
								
									
										4
									
								
								acme.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								acme.sh
									
									
									
									
									
								
							| @ -740,9 +740,9 @@ _hmac() { | |||||||
| 
 | 
 | ||||||
|   if [ "$alg" = "sha256" ] || [ "$alg" = "sha1" ]; then |   if [ "$alg" = "sha256" ] || [ "$alg" = "sha1" ]; then | ||||||
|     if [ "$outputhex" ]; then |     if [ "$outputhex" ]; then | ||||||
|       $OPENSSL_BIN dgst -"$alg" -mac HMAC -macopt "hexkey:$secret_hex" | cut -d = -f 2 | tr -d ' ' |       ($OPENSSL_BIN dgst -"$alg" -mac HMAC -macopt "hexkey:$secret_hex" 2>/dev/null || $OPENSSL_BIN dgst -"$alg" -hmac "$(printf "%s" "$secret_hex" | _h2b)") | cut -d = -f 2 | tr -d ' ' | ||||||
|     else |     else | ||||||
|       $OPENSSL_BIN dgst -"$alg" -mac HMAC -macopt "hexkey:$secret_hex" -binary |       $OPENSSL_BIN dgst -"$alg" -mac HMAC -macopt "hexkey:$secret_hex" -binary 2>/dev/null || $OPENSSL_BIN dgst -"$alg" -hmac "$(printf "%s" "$secret_hex" | _h2b)" -binary | ||||||
|     fi |     fi | ||||||
|   else |   else | ||||||
|     _err "$alg is not supported yet" |     _err "$alg is not supported yet" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user