IKEv1 XAuth: Fix XAuth task so that it reinitiates.
[strongswan.git] / scripts / keyid2sql.c
index bf95217..e37303c 100644 (file)
@@ -17,7 +17,7 @@ int main(int argc, char *argv[])
        int read, n;
 
        library_init(NULL);
-       lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR, PLUGINS);
+       lib->plugins->load(lib->plugins, NULL, PLUGINS);
        atexit(library_deinit);
 
        read = fread(buf, 1, sizeof(buf), stdin);
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
                                                                 BUILD_END);
        if (private)
        {
-               if (private->get_fingerprint(private, KEY_ID_PUBKEY_SHA1, &chunk))
+               if (private->get_fingerprint(private, KEYID_PUBKEY_SHA1, &chunk))
                {
                        printf("%d, X'", ID_KEY_ID);
                        for (n = 0; n < chunk.len; n++)
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
        }
        if (public)
        {
-               if (public->get_fingerprint(public, KEY_ID_PUBKEY_SHA1, &chunk))
+               if (public->get_fingerprint(public, KEYID_PUBKEY_SHA1, &chunk))
                {
                        printf("%d, X'", ID_KEY_ID);
                        for (n = 0; n < chunk.len; n++)