From db4ec82b84bdbe96ee0d9fb3d8636b5eb329d82c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Nov 2023 13:41:24 +0000 Subject: [PATCH] Modern SSL is actually aware of BIMI OID in the database... --- src/x509_helpers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x509_helpers.rs b/src/x509_helpers.rs index f464467..da03e30 100644 --- a/src/x509_helpers.rs +++ b/src/x509_helpers.rs @@ -31,7 +31,7 @@ impl ExtendedKeyUsage { buf.as_mut_ptr() as *mut _, buf.len() as c_int, self.as_ptr(), - 0, + 1, ); match std::str::from_utf8(&buf[..len as usize]) { Err(_) => None, @@ -49,7 +49,7 @@ impl fmt::Display for ExtendedKeyUsage { buf.as_mut_ptr() as *mut _, buf.len() as c_int, self.as_ptr(), - 0, + 1, ); match std::str::from_utf8(&buf[..len as usize]) { Err(_) => fmt.write_str("error"),