Mark CRT frame argument to mbedtls_x509_xxx_from_frame() constant
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 4e5f6f5..29b304a 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -98,13 +98,13 @@
static int x509_crt_parse_frame( unsigned char *start,
unsigned char *end,
mbedtls_x509_crt_frame *frame );
-static int x509_crt_subject_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_subject_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_name *subject );
-static int x509_crt_issuer_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_issuer_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_name *issuer );
-static int x509_crt_subject_alt_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_subject_alt_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_sequence *subject_alt );
-static int x509_crt_ext_key_usage_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_ext_key_usage_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_sequence *ext_key_usage );
int mbedtls_x509_crt_flush_cache_pk( mbedtls_x509_crt const *crt )
@@ -1356,7 +1356,7 @@
return( 0 );
}
-static int x509_crt_subject_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_subject_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_name *subject )
{
return( mbedtls_x509_get_name( frame->subject_raw.p,
@@ -1364,7 +1364,7 @@
subject ) );
}
-static int x509_crt_issuer_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_issuer_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_name *issuer )
{
return( mbedtls_x509_get_name( frame->issuer_raw.p,
@@ -1372,7 +1372,7 @@
issuer ) );
}
-static int x509_crt_subject_alt_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_subject_alt_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_sequence *subject_alt )
{
int ret;
@@ -1390,7 +1390,7 @@
return( ret );
}
-static int x509_crt_ext_key_usage_from_frame( mbedtls_x509_crt_frame *frame,
+static int x509_crt_ext_key_usage_from_frame( mbedtls_x509_crt_frame const *frame,
mbedtls_x509_sequence *ext_key_usage )
{
int ret;