mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Merge 91e04a24af into 9082b004b6
This commit is contained in:
commit
4ed62325c7
1 changed files with 8 additions and 1 deletions
|
|
@ -641,7 +641,14 @@ pub fn init(input: *Reader, output: *Writer, options: Options) InitError!Client
|
|||
// certificate_verify message later.
|
||||
try main_cert_pub_key.init(subject.pub_key_algo, subject.pubKey());
|
||||
} else {
|
||||
try prev_cert.verify(subject, now_sec);
|
||||
prev_cert.verify(subject, now_sec) catch |err| switch (err) {
|
||||
error.CertificateIssuerMismatch => {
|
||||
// Skip certificate which is not part of the chain
|
||||
cert_index += 1;
|
||||
continue;
|
||||
},
|
||||
else => |e| return e,
|
||||
};
|
||||
}
|
||||
|
||||
switch (options.ca) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue