Where are base64_encode/decode functions defined?
Posted: Tue Jul 18, 2017 1:20 am
There are couple base64.h files that declare base64_encode/decode functions, but I dont see the implementation?
Also the way how is macro BASE64_H defined could be an issue if some module require the base64_encode/decode and other require _base64_encode/decode versions of those utils in the same application:
esp-idf\components\wpa_supplicant\include\crypto\base64.h:
#ifndef BASE64_H
#define BASE64_H
unsigned char * base64_encode(const unsigned char *src, size_t len, size_t *out_len);
unsigned char * base64_decode(const unsigned char *src, size_t len, size_t *out_len);
#endif /* BASE64_H */
esp-idf\components\wpa_supplicant\include\wpa2\utils\base64.h
#ifndef BASE64_H
#define BASE64_H
unsigned char * _base64_encode(const unsigned char *src, size_t len, size_t *out_len);
unsigned char * _base64_decode(const unsigned char *src, size_t len, size_t *out_len);
#endif /* BASE64_H */
Thanks
Also the way how is macro BASE64_H defined could be an issue if some module require the base64_encode/decode and other require _base64_encode/decode versions of those utils in the same application:
esp-idf\components\wpa_supplicant\include\crypto\base64.h:
#ifndef BASE64_H
#define BASE64_H
unsigned char * base64_encode(const unsigned char *src, size_t len, size_t *out_len);
unsigned char * base64_decode(const unsigned char *src, size_t len, size_t *out_len);
#endif /* BASE64_H */
esp-idf\components\wpa_supplicant\include\wpa2\utils\base64.h
#ifndef BASE64_H
#define BASE64_H
unsigned char * _base64_encode(const unsigned char *src, size_t len, size_t *out_len);
unsigned char * _base64_decode(const unsigned char *src, size_t len, size_t *out_len);
#endif /* BASE64_H */
Thanks