Fix typos. (#40)

This commit is contained in:
Tom D 2019-06-12 10:15:42 -07:00 committed by GitHub
parent 8afa43fc13
commit 7c3baced09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,7 +369,7 @@ func (h *winPCP) Close() error {
return closeNCryptObject(h.hProv)
}
// DeleteKey permenantly removes the key with the given handle
// DeleteKey permanently removes the key with the given handle
// from the system, and frees its handle.
func (h *winPCP) DeleteKey(kh uintptr) error {
r, _, msg := nCryptDeleteKey.Call(kh, 0)
@ -393,7 +393,7 @@ func (h *winPCP) EKCerts() ([]*x509.Certificate, error) {
}
// Reading the certificate from the system store has failed.
// Lets try reading the raw bytes directly from NVRAM intead.
// Lets try reading the raw bytes directly from NVRAM instead.
if len(c) == 0 {
buf, err := getNCryptBufferProperty(h.hProv, "PCP_EKNVCERT")
if err != nil {