Skip to content

Commit

Permalink
Update man page, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Feb 2, 2018
1 parent 0c265d0 commit 391d51d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(CPACK_PACKAGE_VENDOR "Frank Denis")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
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_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}")
Expand Down
9 changes: 5 additions & 4 deletions src/manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
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.
=============================================
======================================================================

## SYNOPSIS

`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

## DESCRIPTION
Expand All @@ -23,7 +23,7 @@ These options control the actions of `minisign`.
* `-G`:
Generate a new key pair
* `-S`:
Sign a file
Sign files
* `-V`:
Verify that a signature is valid for a given file
* `-m <file>`:
Expand Down Expand Up @@ -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`.

Signing a file
Signing files

$ `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:

Expand Down
2 changes: 1 addition & 1 deletion src/minisign.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ usage(void)
"\n"
#ifndef VERIFY_ONLY
"-G generate a new key pair\n"
"-S sign a file\n"
"-S sign files\n"
#endif
"-V verify that a signature is valid for a given file\n"
"-m <file> file to sign/verify\n"
Expand Down
2 changes: 1 addition & 1 deletion src/minisign.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define SIG_DEFAULT_PKFILE "minisign.pub"
#define SIG_DEFAULT_SKFILE "minisign.key"
#define SIG_SUFFIX ".minisig"
#define VERSION_STRING "minisign 0.7"
#define VERSION_STRING "minisign 0.8"

typedef struct KeynumSK_ {
unsigned char keynum[KEYNUMBYTES];
Expand Down

0 comments on commit 391d51d

Please sign in to comment.