Skip to content

Commit 31a48d0

Browse files
committed
Const arrays should be const
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent c1437de commit 31a48d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/misc/pem/pem_pkcs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int s_get_pka(ltc_asn1_list *pub, enum ltc_pka_id *pka)
6969

7070
typedef int (*import_fn)(const unsigned char *, unsigned long, void*);
7171

72-
static import_fn s_import_x509_fns[LTC_PKA_NUM] = {
72+
static const import_fn s_import_x509_fns[LTC_PKA_NUM] = {
7373
#ifdef LTC_MRSA
7474
[LTC_PKA_RSA] = (import_fn)rsa_import_x509,
7575
#endif
@@ -176,7 +176,7 @@ static int s_extract_pka(unsigned char *pem, unsigned long w, enum ltc_pka_id *p
176176
return err;
177177
}
178178

179-
static import_fn s_import_openssl_fns[LTC_PKA_NUM] = {
179+
static const import_fn s_import_openssl_fns[LTC_PKA_NUM] = {
180180
#ifdef LTC_MRSA
181181
[LTC_PKA_RSA] = (import_fn)rsa_import,
182182
#endif

0 commit comments

Comments
 (0)