Update man page, bump version

This commit is contained in:
Frank Denis 2018-02-02 23:32:14 +01:00
parent 0c265d0dc6
commit 391d51d3a2
4 changed files with 8 additions and 7 deletions

View file

@ -7,7 +7,7 @@ set(CPACK_PACKAGE_VENDOR "Frank Denis")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md") set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_VERSION_MAJOR "0") set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "7") set(CPACK_PACKAGE_VERSION_MINOR "8")
set(CPACK_PACKAGE_VERSION_PATCH "0") set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
set(CPACK_SOURCE_IGNORE_FILES "/build/;minisign.key;minisign.pub;a.out;/.git/;~$;${CPACK_SOURCE_IGNORE_FILES}") set(CPACK_SOURCE_IGNORE_FILES "/build/;minisign.key;minisign.pub;a.out;/.git/;~$;${CPACK_SOURCE_IGNORE_FILES}")

View file

@ -2,12 +2,12 @@
This man page can be generated using ronn - http://rtomayko.github.com/ronn/ This man page can be generated using ronn - http://rtomayko.github.com/ronn/
--> -->
minisign(1) -- A dead simple tool to sign files and verify signatures. minisign(1) -- A dead simple tool to sign files and verify signatures.
============================================= ======================================================================
## SYNOPSIS ## SYNOPSIS
`minisign` -G [-p pubkey] [-s seckey] `minisign` -G [-p pubkey] [-s seckey]
`minisign` -S [-H] [-x sigfile] [-s seckey] [-c untrusted_comment] [-t trusted_comment] -m <file> `minisign` -S [-H] [-x sigfile] [-s seckey] [-c untrusted_comment] [-t trusted_comment] -m file [file ...]
`minisign` -V [-x sigfile] [-p pubkeyfile | -P pubkey] [-o] [-q] -m file `minisign` -V [-x sigfile] [-p pubkeyfile | -P pubkey] [-o] [-q] -m file
## DESCRIPTION ## DESCRIPTION
@ -23,7 +23,7 @@ These options control the actions of `minisign`.
* `-G`: * `-G`:
Generate a new key pair Generate a new key pair
* `-S`: * `-S`:
Sign a file Sign files
* `-V`: * `-V`:
Verify that a signature is valid for a given file Verify that a signature is valid for a given file
* `-m <file>`: * `-m <file>`:
@ -62,9 +62,10 @@ Creating a key pair
The public key is printed and put into the `minisign.pub` file. The secret key is encrypted and saved as a file named `~/.minisign/minisign.key`. The public key is printed and put into the `minisign.pub` file. The secret key is encrypted and saved as a file named `~/.minisign/minisign.key`.
Signing a file Signing files
$ `minisign` -Sm myfile.txt $ `minisign` -Sm myfile.txt
$ `minisign` -Sm myfile.txt myfile2.txt *.c
Or to include a comment in the signature, that will be verified and displayed when verifying the file: Or to include a comment in the signature, that will be verified and displayed when verifying the file:

View file

@ -38,7 +38,7 @@ usage(void)
"\n" "\n"
#ifndef VERIFY_ONLY #ifndef VERIFY_ONLY
"-G generate a new key pair\n" "-G generate a new key pair\n"
"-S sign a file\n" "-S sign files\n"
#endif #endif
"-V verify that a signature is valid for a given file\n" "-V verify that a signature is valid for a given file\n"
"-m <file> file to sign/verify\n" "-m <file> file to sign/verify\n"

View file

@ -19,7 +19,7 @@
#define SIG_DEFAULT_PKFILE "minisign.pub" #define SIG_DEFAULT_PKFILE "minisign.pub"
#define SIG_DEFAULT_SKFILE "minisign.key" #define SIG_DEFAULT_SKFILE "minisign.key"
#define SIG_SUFFIX ".minisig" #define SIG_SUFFIX ".minisig"
#define VERSION_STRING "minisign 0.7" #define VERSION_STRING "minisign 0.8"
typedef struct KeynumSK_ { typedef struct KeynumSK_ {
unsigned char keynum[KEYNUMBYTES]; unsigned char keynum[KEYNUMBYTES];