-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polish API char*
vs. unsigned char*
#361
Comments
The only issue I see with For example libsodium adds |
well that's only true for our decoders, the encoders already |
You are right Decoders are IMO not a problem. |
yeah, it should! you can add it to #353 if you want to :)
nope, but I'd say either we change the existing API or we add |
oh kay... now I'm curious :) |
@sjaeckel do you see any troubles with switching to use 'char*' in base64_* ? |
not really |
FYI: there are two related PR #366 and #367 I would like to propose changing: int base16_decode(const char *in, unsigned char *out, unsigned long *outlen) to: int base16_decode(const char *in, unsigned long inlen, unsigned char *out, unsigned long *outlen) It will be consistent with base64_encode and base32_encode and IMO it is also a bit more developer-friendly as you do not need to safe-check |
e.g. the Base64 API uses
unsigned char*
wherechar*
should have been used.Check all API's that work with "strings" and correct this.
The text was updated successfully, but these errors were encountered: