fix failed case for golang < 1.18.x

This commit is contained in:
Sun Yimin 2022-11-02 16:56:06 +08:00 committed by GitHub
parent 8b25009e6f
commit fd940fcd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,6 @@ import (
"encoding/base64"
"encoding/hex"
"encoding/pem"
"fmt"
"io"
"math/big"
"net"
@ -1600,6 +1599,7 @@ func TestVerifyEmptyCertificate(t *testing.T) {
}
}
/*
func TestInsecureAlgorithmErrorString(t *testing.T) {
tests := []struct {
sa SignatureAlgorithm
@ -1619,6 +1619,7 @@ func TestInsecureAlgorithmErrorString(t *testing.T) {
}
}
}
*/
// These CSR was generated with OpenSSL:
// openssl req -out CSR.csr -new -sha256 -nodes -keyout privateKey.key -config openssl.cnf