1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 02:39:39 +02:00

Change argument type for toCertificate() method to more general PGPKeyRing

This commit is contained in:
Paul Schaub 2025-03-20 19:33:29 +01:00
parent 3a28b33355
commit a00a90c175
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -80,8 +80,8 @@ class PGPainless(
fun toKey(secretKeyRing: PGPSecretKeyRing): OpenPGPKey = fun toKey(secretKeyRing: PGPSecretKeyRing): OpenPGPKey =
OpenPGPKey(secretKeyRing, implementation) OpenPGPKey(secretKeyRing, implementation)
fun toCertificate(publicKeyRing: PGPPublicKeyRing): OpenPGPCertificate = fun toCertificate(keyOrCertificate: PGPKeyRing): OpenPGPCertificate =
OpenPGPCertificate(publicKeyRing, implementation) OpenPGPCertificate(keyOrCertificate, implementation)
fun mergeCertificate( fun mergeCertificate(
originalCopy: OpenPGPCertificate, originalCopy: OpenPGPCertificate,