diff -Naur pam-ssh-agent-auth-0.10.4.orig/ssh-ecdsa.c pam-ssh-agent-auth-0.10.4/ssh-ecdsa.c
--- pam-ssh-agent-auth-0.10.4.orig/ssh-ecdsa.c	2019-07-08 18:36:13.000000000 +0200
+++ pam-ssh-agent-auth-0.10.4/ssh-ecdsa.c	2024-11-23 17:37:57.809050767 +0100
@@ -73,7 +73,7 @@
     if (pamsshagentauth_buffer_get_bignum2_ret(&bb, sig->r) == -1 ||
         pamsshagentauth_buffer_get_bignum2_ret(&bb, sig->s) == -1) {
 #else
-    DSA_SIG_get0(sig, &r, &s);
+    DSA_SIG_get0((const DSA_SIG*)sig, (const BIGNUM **)&r, (const BIGNUM **)&s);
     if (pamsshagentauth_buffer_get_bignum2_ret(&bb, r) == -1 ||
         pamsshagentauth_buffer_get_bignum2_ret(&bb, s) == -1) {
 #endif
@@ -145,7 +145,7 @@
     if ((pamsshagentauth_buffer_get_bignum2_ret(&b, sig->r) == -1) ||
         (pamsshagentauth_buffer_get_bignum2_ret(&b, sig->s) == -1))
 #else
-    DSA_SIG_get0(sig, &r, &s);
+    DSA_SIG_get0((const DSA_SIG*)sig, (const BIGNUM **)&r, (const BIGNUM **)&s);
     if ((pamsshagentauth_buffer_get_bignum2_ret(&b, r) == -1) ||
         (pamsshagentauth_buffer_get_bignum2_ret(&b, s) == -1))
 #endif
diff -Naur pam-ssh-agent-auth-0.10.4.orig/ssh-rsa.c pam-ssh-agent-auth-0.10.4/ssh-rsa.c
--- pam-ssh-agent-auth-0.10.4.orig/ssh-rsa.c	2019-07-08 18:36:13.000000000 +0200
+++ pam-ssh-agent-auth-0.10.4/ssh-rsa.c	2024-11-23 17:36:32.237044010 +0100
@@ -56,9 +56,9 @@
 		return -1;
 	}
 	md = EVP_MD_CTX_create();
-	EVP_DigestInit(&md, evp_md);
-	EVP_DigestUpdate(&md, data, datalen);
-	EVP_DigestFinal(&md, digest, &dlen);
+	EVP_DigestInit(md, evp_md);
+	EVP_DigestUpdate(md, data, datalen);
+	EVP_DigestFinal(md, digest, &dlen);
 
 	slen = RSA_size(key->rsa);
 	sig = pamsshagentauth_xmalloc(slen);
