-
Notifications
You must be signed in to change notification settings - Fork 492
Fix warnings #755
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
base: develop
Are you sure you want to change the base?
Fix warnings #755
Changes from all commits
9ade5bd
98cd215
c3166cd
e0be0d2
977b9e9
1687e95
9841566
e9a7e94
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -324,7 +324,7 @@ struct ssh_pka { | |
| int (*decode)(const unsigned char*, unsigned long*, ltc_pka_key*, enum pem_flags); | ||
| }; | ||
|
|
||
| struct ssh_pka ssh_pkas[] = { | ||
| static struct ssh_pka ssh_pkas[] = { | ||
| #ifdef LTC_CURVE25519 | ||
| { SET_CSTR(.name, "ssh-ed25519"), | ||
| LTC_PKA_ED25519, | ||
|
|
@@ -555,6 +555,7 @@ static int s_read_authorized_keys(const void *buf, unsigned long len, ssh_author | |
| } | ||
| XMEMCPY(cpy, buf, len); | ||
| s = cpy; | ||
| err = CRYPT_ERROR; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this correct? Shouldn't this instead return
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure as we do not accept zero
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, good question. Yet another case of |
||
| while (clen && (err = s_parse_line(s, &clen, key, &comment)) == CRYPT_OK) { | ||
| if (cb(key, comment, ctx)) { | ||
| break; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: I re-wrote this to the same form as before, since it is clearer and easier to understand IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with that