summaryrefslogtreecommitdiffstats
path: root/usr.bin/signify/signify.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* improve checksum parsing slightly. now handles filenames with spaces.tedu2015-01-161-4/+3
| | | | (though not names with ')'; sorry.)
* just to be careful, add a cpp guard that the sscanf sizes are oktedu2015-01-161-1/+4
|
* use PATH_MAX for path buffers. in case, you know...tedu2015-01-151-3/+4
|
* absurd optimization. reduce initial space by one to avoid leaving one bytetedu2015-01-091-2/+2
| | | | hanging off on a page by itself.
* bcallah noticed the ifndef guard for headers was wrong. don't fix, justtedu2015-01-071-5/+3
| | | | remove it, and put these includes up with their friends.
* useless change. overwriting the nul byte with a newline means b64_ntoptedu2014-12-291-2/+2
| | | | can use the whole buffer, even the last byte.
* rename fingerprint struct field. no longer exposed to users, but since it'stedu2014-12-291-11/+11
| | | | | | not technically a fingerprint as others understand the term, pick another. now it's a keynum! after an email from Florian Weimer
* remove the inspect debug command. should not be used by users, who are nottedu2014-12-291-37/+2
| | | | supposed to know what fingerprints are or that they exist.
* Yet more #include de-duplication.krw2014-11-201-2/+1
| | | | ok deraadt@ tedu@
* compare snprintf return value with -1. this isn't really necessary becausetedu2014-07-131-16/+17
| | | | | | int promotion rules guarantee the correct result when compared with sizeof, but it is perhaps easier for some people to understand it this way. from Doug Hogan.
* don't assign variables in if() that's not error checkingtedu2014-05-301-3/+5
|
* a little style consistency with error checkingtedu2014-05-301-11/+6
|
* save up the failures for the end in the argc == 0.tedu2014-05-161-16/+16
| | | | help ok espie
* a few changes for new code to match local styletedu2014-05-161-11/+11
|
* checksum mode can use magic pubkey finder tootedu2014-05-161-3/+3
|
* rework -C (perfect candidate for using hash tables, really):espie2014-05-161-72/+90
| | | | | | | | | | | insert files we want to check into a hash, parse SHA256 message on the fly, delete entries whose checksum match, then display entries that failed. This completely avoids allocating temporary storage for file names and checksums and removes the quadratic match (argv[i] vs line[n]). okay tedu@
* fix the band-aid error.espie2014-05-151-3/+3
| | | | | | | | tedu was bitten by the RETARDED interface in sha2.h (who names string LENGTH things that are actually buffer SIZES) ? make -C mode work again. okay beck@
* let cpp do some of the worktedu2014-05-141-4/+5
|
* spell out base64 in error messagestedu2014-05-141-4/+4
|
* save some memory by reducing buffer sizestedu2014-05-141-5/+5
|
* recode base64 hashes if necessarytedu2014-05-141-1/+17
|
* realloc like a boss, so checksum verification doesn't take minutes.tedu2014-05-141-5/+8
|
* temp variable for a bit of claritytedu2014-05-061-6/+6
|
* remove unneeded variabletedu2014-05-061-4/+2
|
* factor out the safepathtedu2014-05-061-2/+3
|
* be more explicit about what's a stringtedu2014-05-061-5/+5
|
* better alloc idiomtedu2014-05-061-2/+2
|
* factor max message sizetedu2014-05-061-3/+4
|
* use reallocarraytedu2014-04-221-3/+3
|
* errx when errno won't be set.tedu2014-04-221-7/+7
|
* confirm passwords when generating keystedu2014-04-141-4/+13
|
* quiet time is overtedu2014-03-171-3/+1
|
* clean up after ourselves.espie2014-03-171-1/+2
| | | | okay tedu@
* simplify readmsg looptedu2014-03-171-7/+6
|
* tweak a few messagestedu2014-03-171-8/+8
|
* check memcmp return explicitlytedu2014-03-171-6/+6
|
* pull out the pubkey reading bitstedu2014-03-171-25/+24
|
* refactor and recombine verify functions.tedu2014-03-171-36/+56
|
* move fingerprint check into verifymsgtedu2014-03-171-21/+10
| | | | (stop printing fingerprints here; probably not that helpful)
* clarify a variable or two; ok teduderaadt2014-03-171-8/+8
|
* have to fill in comment before we can use it.tedu2014-03-171-2/+2
|
* do filename check in the other place too. needs a refactortedu2014-03-161-1/+4
|
* resolve espie's complaints about appendall (maybe) by folding it intotedu2014-03-161-16/+11
| | | | writeb64file. idea from deraadt
* oops, forgot the err function here. noticed by Henri Kemppainentedu2014-03-161-2/+3
|
* we want strncmp here to be safer. spotted by halex.tedu2014-03-161-2/+2
|
* grow buffer fastertedu2014-03-161-2/+2
|
* tweak path checks. now you can create keys named ......pubtedu2014-03-161-3/+3
| | | | by deraadt
* prevent common(?) mistake. can't use a directory as a filetedu2014-03-161-1/+4
|
* check the inferred path is in /etc/signifytedu2014-03-161-3/+6
|
* start trusting the untrusted comment. (a little)tedu2014-03-161-11/+32
| | | | embed the name of the verification key to save some typing