summaryrefslogtreecommitdiffstats
path: root/ldap/clients/dsgw/ckdel.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/clients/dsgw/ckdel.c')
-rw-r--r--ldap/clients/dsgw/ckdel.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/ldap/clients/dsgw/ckdel.c b/ldap/clients/dsgw/ckdel.c
new file mode 100644
index 00000000..d823da14
--- /dev/null
+++ b/ldap/clients/dsgw/ckdel.c
@@ -0,0 +1,30 @@
+/**
+ * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to
+ * license terms. Copyright © 2001 Sun Microsystems, Inc.
+ * Some preexisting portions Copyright © 2001 Netscape Communications Corp.
+ * All rights reserved.
+ */
+
+#include <stdio.h>
+#include "dsgw.h"
+
+#include <ssl.h>
+#include <sec.h>
+
+main( int argc, char **argv)
+{
+ char cookie[ 512 ];
+ int rc;
+
+ printf( "Remove an entry to the cookie database\n" );
+
+ printf( "cookie: " );
+ gets( cookie );
+
+ rc = dsgw_delcookie( cookie );
+ if ( rc == 0 ) {
+ printf( "Cookie deleted\n" );
+ } else {
+ printf( "Failed, rc = %d\n", rc );
+ }
+}