-
Notifications
You must be signed in to change notification settings - Fork 140
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
Replace tpsclient with pki tps-client #4969
Conversation
Most of the code in tpsclient has been moved into libpki-tps.so (i.e. reverting commit 65d1a36) such that it can be reused by other tools. The main() function itself has been moved into tpsclient.cpp.
The pki tps-client has been added to replace tpsclient to make it easier to maintain TPS client code and to troubleshoot TPS issues. Currently it will simply reuse libpki-tps.so but in the future the native code will gradually be converted to Java. The tpsclient has been deprecated and will be removed in the future. The basic TPS test has been updated to test both pki tps-client and tpsclient.
|
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.
LGTM. Just minor comments
/** | ||
* @author Endi S. Dewata | ||
*/ | ||
public class TPSClientCLI extends CommandCLI { |
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.
TO be more in line with the other commands I think we should have tps-client-format
and tps-client-enroll
eliminating the need for the 2 additional scripts but this change can go in future PRs.
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.
Yes, that's the plan, but it will require some additional native -> Java conversion. We can add that later.
|
||
/* Shutdown NSS and NSPR */ | ||
NSS_Shutdown (); | ||
PR_Cleanup (); |
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.
Initialisation is done in CryptoManger during CLI initialisation but shutdown/cleanup is not present (at least I have not found). I guess there should be no effect since after the operations the command will exit.
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.
Right, so far pki
CLI is working just fine without it, but we can add it if necessary.
@fmarco76 Thanks! |
Most of the code in
tpsclient
has been moved intolibpki-tps.so
(i.e. reverting commit 65d1a36) such that it can be reused by other tools. Themain()
function itself has been moved intotpsclient.cpp
.The
pki tps-client
has been added to replacetpsclient
to make it easier to maintain TPS client code and to troubleshoot TPS issues. Currently it will simply reuselibpki-tps.so
but in the future the native code will gradually be converted to Java.The
tpsclient
has been deprecated and will be removed in the future.The basic TPS test has been updated to test both
pki tps-client
andtpsclient
./~https://github.com/edewata/pki/blob/tpsclient/docs/changes/v11.7.0/Tools-Changes.adoc