Changeset 575 in code for trunk/service.go
- Timestamp:
- Jul 6, 2021, 2:34:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/service.go
r573 r575 10 10 "crypto/sha1" 11 11 "crypto/sha256" 12 "crypto/sha512" 12 13 "crypto/x509" 13 14 "crypto/x509/pkix" … … 663 664 sha256Sum := sha256.Sum256(derBytes) 664 665 sendServicePRIVMSG(dc, "SHA-256 fingerprint: "+hex.EncodeToString(sha256Sum[:])) 666 sha512Sum := sha512.Sum512(derBytes) 667 sendServicePRIVMSG(dc, "SHA-512 fingerprint: "+hex.EncodeToString(sha512Sum[:])) 665 668 666 669 return nil … … 681 684 sha256Sum := sha256.Sum256(net.SASL.External.CertBlob) 682 685 sendServicePRIVMSG(dc, "SHA-256 fingerprint: "+hex.EncodeToString(sha256Sum[:])) 686 sha512Sum := sha512.Sum512(net.SASL.External.CertBlob) 687 sendServicePRIVMSG(dc, "SHA-512 fingerprint: "+hex.EncodeToString(sha512Sum[:])) 683 688 return nil 684 689 }
Note:
See TracChangeset
for help on using the changeset viewer.