mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-09 03:25:28 +00:00
Use MessageDigest.isEquals method when comparing signatures in NTLMEngineImpl
Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
This commit is contained in:
parent
4f8f34fe5c
commit
4adaa20be6
@ -926,7 +926,7 @@ private boolean validateSignature( final byte[] signature, final byte[] message
|
||||
// log.info( "SSSSS validateSignature("+seqNumber+")\n"
|
||||
// + " received: " + DebugUtil.dump( signature ) + "\n"
|
||||
// + " computed: " + DebugUtil.dump( computedSignature ) );
|
||||
return Arrays.equals( signature, computedSignature );
|
||||
return MessageDigest.isEqual( signature, computedSignature );
|
||||
}
|
||||
|
||||
public byte[] signAndEncryptMessage( final byte[] cleartextMessage ) throws NTLMEngineException
|
||||
|
Loading…
x
Reference in New Issue
Block a user