strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x509 plugin supports encoding of CA basicConstraint extension
[strongswan.git]
/
scripts
/
keyid2sql.c
diff --git
a/scripts/keyid2sql.c
b/scripts/keyid2sql.c
index
25a29d6
..
bf95217
100644
(file)
--- a/
scripts/keyid2sql.c
+++ b/
scripts/keyid2sql.c
@@
-15,9
+15,9
@@
int main(int argc, char *argv[])
chunk_t chunk;
char buf[8096];
int read, n;
chunk_t chunk;
char buf[8096];
int read, n;
-
+
library_init(NULL);
library_init(NULL);
- lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
"gmp pubkey sha1"
);
+ lib->plugins->load(lib->plugins, IPSEC_PLUGINDIR,
PLUGINS
);
atexit(library_deinit);
read = fread(buf, 1, sizeof(buf), stdin);
atexit(library_deinit);
read = fread(buf, 1, sizeof(buf), stdin);
@@
-26,9
+26,9
@@
int main(int argc, char *argv[])
fprintf(stderr, "reading key failed.\n");
return -1;
}
fprintf(stderr, "reading key failed.\n");
return -1;
}
-
+
chunk = chunk_create(buf, read);
chunk = chunk_create(buf, read);
-
+
private = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, KEY_RSA,
BUILD_BLOB_PEM, chunk_clone(chunk),
BUILD_END);
private = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, KEY_RSA,
BUILD_BLOB_PEM, chunk_clone(chunk),
BUILD_END);
@@
-46,7
+46,7
@@
int main(int argc, char *argv[])
private->destroy(private);
return 0;
}
private->destroy(private);
return 0;
}
-
+
public = lib->creds->create(lib->creds, CRED_PUBLIC_KEY, KEY_ANY,
BUILD_BLOB_PEM, chunk_clone(chunk),
BUILD_END);
public = lib->creds->create(lib->creds, CRED_PUBLIC_KEY, KEY_ANY,
BUILD_BLOB_PEM, chunk_clone(chunk),
BUILD_END);
@@
-70,7
+70,7
@@
int main(int argc, char *argv[])
public->destroy(public);
return 0;
}
public->destroy(public);
return 0;
}
-
+
fprintf(stderr, "unable to parse input key.\n");
return -1;
}
fprintf(stderr, "unable to parse input key.\n");
return -1;
}