-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add error detection for authentication (fixes #12) #13
base: gnuk1.2-regnual-fix
Are you sure you want to change the base?
Add error detection for authentication (fixes #12) #13
Conversation
Looks good! On which firmware version have you tested it? |
From 1.2.6 to RTM.6 |
I can not imagine any difference in other firmware versions. However, do you think I should test for others (which one)? |
No, this should be sufficient. |
Sorry, I do not understand, what exactly you mean by cross-compare. Should I merge? Or just have a look if there are changes which contradict? |
Sorry for confusion. Yes, I meant compare the both files in case we have different version, and try to apply patch on the current GNUK's |
Yes, please try to get changes merged in upstream. Thanks.
|
@szszszsz is there a reason that some of your commits from 04 July 2018 are included upstream already and some aren't? Was there a discussion about it? |
@alex-nitrokey Yes, AFAIR another solution was suggested for one of the issues back then, hence the partial merge. It should be archived and available online. If not, please drop me an email if you are interested. |
I found it. I try to refactor the code and address the concerns. |
Friendly ping |
You and NIIBE talked about the fact that it would be nice to have something like a 'gnuk-tool' which handles all the tasks which are now separated in some tools. As this is a more tedious task than just fixing this issue, I would suggest to make just the upgrade script right. The minor task regarding the upgrade script were about how imports are handled and stuff like this. IMHO I can not do this properly without cleaning up the code a bit. On the other hand this might not get included upstream, because of to heavy changes. So... what do you think? I already began changing the code and was only then wondering if this is a good idea... |
Yes, would be nice to develop a general
Just do a small commits, with well described intents in the message, to ease the review. We can diverge for a while, and perhaps just replace later the original GNUK scripts with ours. |
Please focus first on releasing asap the update script changes, which would prevent locking the Start device on giving the wrong PIN, while it has disabled |
In case the wrong PIN is supplied, and the factory-reset is set to no, this would lock the device entirely. Temporary fix for #12, while waiting for #13. Signed-off-by: Szczepan Zalega <[email protected]>
Update: I have added a temporary quick-fix for the original issue (as in #13 (comment) #12 (comment)): c66c238. |
This is what the very first commit already was capable of. It exits if wrong pin is provided. |
No description provided.