mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/openssl-1.1'
* origin/topic/jsiwek/openssl-1.1: Update install instructions for OpenSSL 1.1 compat Remove requestorName parameter of ocsp_request event Adjust x509 unit tests to work around OpenSSL 1.0 vs. 1.1 differences Fixes for OpenSSL 1.1 support
This commit is contained in:
commit
a251b32d85
21 changed files with 527 additions and 90 deletions
55
testing/scripts/diff-remove-x509-key-info
Executable file
55
testing/scripts/diff-remove-x509-key-info
Executable file
|
@ -0,0 +1,55 @@
|
|||
#! /usr/bin/env bash
|
||||
#
|
||||
# A diff canonifier that removes all X.509 public key information
|
||||
# which, in the specific case of the RDP protocol's misuse of
|
||||
# md5WithRSAEncryption, seems that OpenSSL 1.0 is able to manually
|
||||
# workaround by setting to rsaEncryption, but OpenSSL 1.1 still fails
|
||||
# to extract the key, so the corresponding fields are always removed here.
|
||||
|
||||
awk '
|
||||
BEGIN { FS="\t"; OFS="\t"; key_type_col = -1; key_length_col = -1; exponent_col = -1; curve_col = -1 }
|
||||
|
||||
/^#/ {
|
||||
if ( $1 == "#fields" )
|
||||
{
|
||||
for ( i = 2; i <= NF; ++i )
|
||||
{
|
||||
if ( $i == "certificate.key_type" )
|
||||
key_type_col = i-1;
|
||||
if ( $i == "certificate.key_length" )
|
||||
key_length_col = i-1;
|
||||
if ( $i == "certificate.exponent" )
|
||||
exponent_col = i-1;
|
||||
if ( $i == "certificate.curve" )
|
||||
curve_col = i-1;
|
||||
}
|
||||
}
|
||||
|
||||
print;
|
||||
next;
|
||||
}
|
||||
|
||||
key_type_col > 0 {
|
||||
# Mark it regardless of whether it is set.
|
||||
$key_type_col = "x";
|
||||
}
|
||||
|
||||
key_length_col > 0 {
|
||||
# Mark it regardless of whether it is set.
|
||||
$key_length_col = "x";
|
||||
}
|
||||
|
||||
exponent_col > 0 {
|
||||
# Mark it regardless of whether it is set.
|
||||
$exponent_col = "x";
|
||||
}
|
||||
|
||||
curve_col > 0 {
|
||||
# Mark it regardless of whether it is set.
|
||||
$curve_col = "x";
|
||||
}
|
||||
|
||||
{
|
||||
print;
|
||||
}
|
||||
'
|
Loading…
Add table
Add a link
Reference in a new issue