From 1cceecafb8050ec362a9c9568d36d52d3fe4117e Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Thu, 20 Dec 2012 17:38:13 -0500 Subject: Resolved Trac Ticket 367 - pkidestroy does not remove connector * Added RESTful servlet to add/remove a KRA connector from the CA. * Modified ACL to allow KRA subsystem user to remove connector. * Modified connector code to allow the connector to be replaced without a server restart. * Added functionality to pki CLI to add/remove connector * Added code to pkidestroy to remove the connector (using both pki CLI and sslget) When the issues with pki connection are resolved, we will use that method instead. * Modified sslget to accept HTTP return codes != 200. In this case, we were returning 204 - which is perfectly legitimate. --- base/native-tools/src/sslget/sslget.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'base/native-tools/src/sslget/sslget.c') diff --git a/base/native-tools/src/sslget/sslget.c b/base/native-tools/src/sslget/sslget.c index 7288a1c58..a7c6a3f09 100644 --- a/base/native-tools/src/sslget/sslget.c +++ b/base/native-tools/src/sslget/sslget.c @@ -426,7 +426,11 @@ do_io( PRFileDesc *ssl_sock, int connection) buf2 = 0; } - if ( ! PL_strnstr(buf,"200",13)) { + char *status_string = PL_strndup(buf+9, 3); + int status = atoi(status_string); + PL_strfree(status_string); + + if (status >= 300) { PR_Free(buf); buf = 0; exit(3); -- cgit