Make sig_opts non-optional in X509 structures
This simplifies the code.
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 6e01db8..d6164a8 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -1253,11 +1253,6 @@
size_t n;
char *p;
char key_size_str[BEFORE_COLON];
-#if defined(POLARSSL_RSASSA_PSS_CERTIFICATES)
- const void *sig_opts = crt->sig_opts;
-#else
- const void *sig_opts = NULL;
-#endif
p = buf;
n = size;
@@ -1300,7 +1295,7 @@
SAFE_SNPRINTF();
ret = x509_sig_alg_gets( p, n, &crt->sig_oid1, crt->sig_pk,
- crt->sig_md, sig_opts );
+ crt->sig_md, crt->sig_opts );
SAFE_SNPRINTF();
/* Key size */