mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[const] const char in base64_decode and init_submitted_value
This commit is contained in:
parent
c29e4f3428
commit
91bf93a784
@ -64,7 +64,7 @@ base64_encode_bin(char *in, int inlen, int *outlen)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
base64_decode(char *in)
|
base64_decode(const char *in)
|
||||||
{
|
{
|
||||||
assert(in && *in);
|
assert(in && *in);
|
||||||
if_assert_failed return NULL;
|
if_assert_failed return NULL;
|
||||||
@ -80,7 +80,7 @@ base64_decode(char *in)
|
|||||||
* @returns the string decoded (must be freed by the caller)
|
* @returns the string decoded (must be freed by the caller)
|
||||||
* or NULL if an error occurred (syntax error or out of memory) */
|
* or NULL if an error occurred (syntax error or out of memory) */
|
||||||
char *
|
char *
|
||||||
base64_decode_bin(char *in, int inlen, int *outlen)
|
base64_decode_bin(const char *in, int inlen, int *outlen)
|
||||||
{
|
{
|
||||||
static unsigned char is_base64_char[256]; /* static to force initialization at zero */
|
static unsigned char is_base64_char[256]; /* static to force initialization at zero */
|
||||||
static unsigned char decode[256];
|
static unsigned char decode[256];
|
||||||
|
@ -6,10 +6,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *base64_encode(char *);
|
char *base64_encode(char *);
|
||||||
char *base64_decode(char *);
|
char *base64_decode(const char *);
|
||||||
|
|
||||||
char *base64_encode_bin(char *, int, int *);
|
char *base64_encode_bin(char *, int, int *);
|
||||||
char *base64_decode_bin(char *, int, int *);
|
char *base64_decode_bin(const char *, int, int *);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ struct files_offset {
|
|||||||
/** @relates submitted_value */
|
/** @relates submitted_value */
|
||||||
|
|
||||||
struct submitted_value *
|
struct submitted_value *
|
||||||
init_submitted_value(char *name, char *value, enum form_type type,
|
init_submitted_value(const char *name, char *value, enum form_type type,
|
||||||
struct el_form_control *fc, int position)
|
struct el_form_control *fc, int position)
|
||||||
{
|
{
|
||||||
struct submitted_value *sv;
|
struct submitted_value *sv;
|
||||||
|
@ -112,7 +112,7 @@ struct submitted_value {
|
|||||||
int position;
|
int position;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct submitted_value *init_submitted_value(char *name, char *value, enum form_type type, struct el_form_control *fc, int position);
|
struct submitted_value *init_submitted_value(const char *name, char *value, enum form_type type, struct el_form_control *fc, int position);
|
||||||
void done_submitted_value(struct submitted_value *sv);
|
void done_submitted_value(struct submitted_value *sv);
|
||||||
void done_submitted_value_list(LIST_OF(struct submitted_value) *list);
|
void done_submitted_value_list(LIST_OF(struct submitted_value) *list);
|
||||||
char *encode_crlf(struct submitted_value *sv);
|
char *encode_crlf(struct submitted_value *sv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user