X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/dd37c5ea8e61e9bec43d01ff1551202bea7402dc..ce1c3225e865ba5748cd855d17d477bda90b7652:/onak.c?ds=sidebyside diff --git a/onak.c b/onak.c index 870e1bd..bba213b 100644 --- a/onak.c +++ b/onak.c @@ -6,6 +6,8 @@ * Jonathan McDowell * * Copyright 2002 Project Purple + * + * $Id: onak.c,v 1.14 2003/06/07 13:37:33 noodles Exp $ */ #include @@ -191,7 +193,10 @@ int main(int argc, char *argv[]) } else if (!strcmp("delete", argv[optind])) { delete_key(getfullkeyid(keyid), false); } else if (!strcmp("get", argv[optind])) { - if (fetch_key(keyid, &keys, false)) { + if (!ishex) { + puts("Can't get a key on uid text." + " You must supply a keyid."); + } else if (fetch_key(keyid, &keys, false)) { logthing(LOGTHING_INFO, "Got key."); flatten_publickey(keys, &packets,