diff options
author | Ade Lee <alee@redhat.com> | 2012-12-20 17:38:13 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-01-14 21:55:45 -0500 |
commit | e3f53172bf7198ffc15d853a9cfef02200f32c88 (patch) | |
tree | 5154e1f9d4810f575f46362065bd227d8e456e75 /base/native-tools | |
parent | d93a522df48a294018468c1db60f651e501ec458 (diff) | |
download | pki-e3f53172bf7198ffc15d853a9cfef02200f32c88.tar.gz pki-e3f53172bf7198ffc15d853a9cfef02200f32c88.tar.xz pki-e3f53172bf7198ffc15d853a9cfef02200f32c88.zip |
Resolved Trac Ticket 367 - pkidestroy does not remove connectorticket-367-1
* 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')
-rw-r--r-- | base/native-tools/src/sslget/sslget.c | 6 |
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); |