summaryrefslogtreecommitdiffstats
path: root/base/native-tools/src
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2012-12-20 17:38:13 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2013-01-11 11:08:57 -0500
commit5986350ef26842559ad50473d2288daf10199d28 (patch)
treee1d14f9c18c96376a8107ce787d1d92eec4e9630 /base/native-tools/src
parentd93a522df48a294018468c1db60f651e501ec458 (diff)
downloadpki-5986350ef26842559ad50473d2288daf10199d28.tar.gz
pki-5986350ef26842559ad50473d2288daf10199d28.tar.xz
pki-5986350ef26842559ad50473d2288daf10199d28.zip
Resolved Trac Ticket 367 - pkidestroy does not remove connectorticket-367
* 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.
Diffstat (limited to 'base/native-tools/src')
-rw-r--r--base/native-tools/src/sslget/sslget.c6
1 files changed, 5 insertions, 1 deletions
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);