Skip to content

Commit 107b16d

Browse files
committed
Fix errors due to incompatible pointer types with gcc 14
1 parent ee81151 commit 107b16d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

interface/gridsite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ char *GRSThttpGetCGI(char *);
453453
time_t GRSTasn1TimeToTimeT(char *, size_t);
454454
int GRSTasn1SearchTaglist(struct GRSTasn1TagList taglist[], int, char *);
455455
#ifndef GRST_NO_OPENSSL
456-
int GRSTasn1ParseDump(BIO *, unsigned char *, long,
456+
int GRSTasn1ParseDump(BIO *, const unsigned char *, long,
457457
struct GRSTasn1TagList taglist[], int, int *);
458458
#endif
459459
int GRSTasn1GetX509Name(char *, int, char *, char *,

src/grst_asn1.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int GRSTasn1SearchTaglist(struct GRSTasn1TagList taglist[],
129129
return -1;
130130
}
131131

132-
static int GRSTasn1PrintPrintable(BIO *bp, char *str, int length)
132+
static int GRSTasn1PrintPrintable(BIO *bp, const unsigned char *str, int length)
133133
{
134134
int ret = 0;
135135
char *dup, *p;
@@ -145,14 +145,14 @@ static int GRSTasn1PrintPrintable(BIO *bp, char *str, int length)
145145
return ret;
146146
}
147147

148-
static int GRSTasn1Parse2(BIO *bp, unsigned char **pp, long length, int offset,
148+
static int GRSTasn1Parse2(BIO *bp, const unsigned char **pp, long length, int offset,
149149
int depth, int indent, int dump, char *treecoords,
150150
struct GRSTasn1TagList taglist[], int maxtag, int *lasttag)
151151
{
152152
int sibling = 0;
153153
char sibtreecoords[512];
154154

155-
unsigned char *p,*ep,*tot,*op,*opp;
155+
const unsigned char *p,*ep,*tot,*op,*opp;
156156
long len;
157157
int tag,xclass,ret=0;
158158
int nl,hl,j,r;
@@ -454,7 +454,7 @@ static int GRSTasn1Parse2(BIO *bp, unsigned char **pp, long length, int offset,
454454
return(ret);
455455
}
456456

457-
int GRSTasn1ParseDump(BIO *bp, unsigned char *pp, long len,
457+
int GRSTasn1ParseDump(BIO *bp, const unsigned char *pp, long len,
458458
struct GRSTasn1TagList taglist[],
459459
int maxtag, int *lasttag)
460460
{

0 commit comments

Comments
 (0)