Use sig_opts in x509_sig_alg_gets()
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 7e5de1d..617b733 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -1261,9 +1261,9 @@
     char *p;
     char key_size_str[BEFORE_COLON];
 #if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
-    const x509_buf *sig_params = &crt->sig_params;
+    const void *sig_opts = crt->sig_opts;
 #else
-    const x509_buf *sig_params = NULL;
+    const void *sig_opts = NULL;
 #endif
 
     p = buf;
@@ -1306,7 +1306,8 @@
     ret = snprintf( p, n, "\n%ssigned using      : ", prefix );
     SAFE_SNPRINTF();
 
-    ret = x509_sig_alg_gets( p, n, &crt->sig_oid1, crt->sig_pk, sig_params );
+    ret = x509_sig_alg_gets( p, n, &crt->sig_oid1, crt->sig_pk,
+                             crt->sig_md, sig_opts );
     SAFE_SNPRINTF();
 
     /* Key size */