Skip to content

Commit 1e5b80d

Browse files
committed
Cosmetic fix in the comments
1 parent b2e3847 commit 1e5b80d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/store.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,11 @@ impl CertStore {
145145
self.do_find(CERT_FIND_HASH, &hash_blob as *const _ as _)
146146
}
147147

148-
// On later OS releases, we added CERT_FIND_SHA256_HASH.
148+
// Windows added CERT_FIND_SHA256_HASH in the recent OS releases.
149149
// However, rustls-cng could be installed on earlier OS release where this FIND_SHA256 isn't present.
150150
// But the CERT_SHA256_HASH_PROP_ID is present.
151151
// So will need to add a new internal find function that gets and compares the SHA256 property.
152-
// Also, since SHA1 is being deprecated, Windows components should not use.
153-
// Therefore, the need to find via SHA256 instead of SHA1.
152+
// Also, since SHA1 is being deprecated, Windows components should not use it.
154153

155154
/// Find a list of certificates matching the SHA256 hash
156155
pub fn find_by_sha256<D>(&self, hash: D) -> Result<Vec<CertContext>>

0 commit comments

Comments
 (0)