add base64url_strict_encode()
This commit is contained in:
parent
006c601efb
commit
eee936d752
@ -12,6 +12,8 @@ int base64_strict_decode(const unsigned char *in, unsigned long len,
|
|||||||
#ifdef LTC_BASE64_URL
|
#ifdef LTC_BASE64_URL
|
||||||
int base64url_encode(const unsigned char *in, unsigned long len,
|
int base64url_encode(const unsigned char *in, unsigned long len,
|
||||||
unsigned char *out, unsigned long *outlen);
|
unsigned char *out, unsigned long *outlen);
|
||||||
|
int base64url_strict_encode(const unsigned char *in, unsigned long inlen,
|
||||||
|
unsigned char *out, unsigned long *outlen);
|
||||||
|
|
||||||
int base64url_decode(const unsigned char *in, unsigned long len,
|
int base64url_decode(const unsigned char *in, unsigned long len,
|
||||||
unsigned char *out, unsigned long *outlen);
|
unsigned char *out, unsigned long *outlen);
|
||||||
|
@ -110,6 +110,12 @@ int base64url_encode(const unsigned char *in, unsigned long inlen,
|
|||||||
{
|
{
|
||||||
return _base64_encode_internal(in, inlen, out, outlen, codes_base64url, 0);
|
return _base64_encode_internal(in, inlen, out, outlen, codes_base64url, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int base64url_strict_encode(const unsigned char *in, unsigned long inlen,
|
||||||
|
unsigned char *out, unsigned long *outlen)
|
||||||
|
{
|
||||||
|
return _base64_encode_internal(in, inlen, out, outlen, codes_base64url, 1);
|
||||||
|
}
|
||||||
#endif /* LTC_BASE64_URL */
|
#endif /* LTC_BASE64_URL */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user