mirror of https://github.com/skeeto/enchive.git
Add ENCHIVE_FILE_EXTENSION compile-time option (#9)
parent
50cc1748f5
commit
d09debe64c
|
@ -266,6 +266,11 @@ The default program to use for `pinentry`.
|
||||||
|
|
||||||
Whether or not to use `pinentry` by default when reading passphrases.
|
Whether or not to use `pinentry` by default when reading passphrases.
|
||||||
|
|
||||||
|
#### `ENCHIVE_FILE_EXTENSION`
|
||||||
|
|
||||||
|
The file extension to add when archiving and remove when extracting. The
|
||||||
|
default is `.enchive`, as it appears in the examples.
|
||||||
|
|
||||||
#### `ENCHIVE_KEY_DERIVE_ITERATIONS`
|
#### `ENCHIVE_KEY_DERIVE_ITERATIONS`
|
||||||
|
|
||||||
Power-of-two exponent for protection key derivation. Can be configured
|
Power-of-two exponent for protection key derivation. Can be configured
|
||||||
|
|
4
config.h
4
config.h
|
@ -11,6 +11,10 @@
|
||||||
# define ENCHIVE_FORMAT_VERSION 3
|
# define ENCHIVE_FORMAT_VERSION 3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef ENCHIVE_FILE_EXTENSION
|
||||||
|
# define ENCHIVE_FILE_EXTENSION .enchive
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef ENCHIVE_KEY_DERIVE_ITERATIONS
|
#ifndef ENCHIVE_KEY_DERIVE_ITERATIONS
|
||||||
# define ENCHIVE_KEY_DERIVE_ITERATIONS 25 /* 32MB */
|
# define ENCHIVE_KEY_DERIVE_ITERATIONS 25 /* 32MB */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -28,7 +28,7 @@ static char *pinentry_path = STR(ENCHIVE_PINENTRY_DEFAULT);
|
||||||
static char *pinentry_path = 0;
|
static char *pinentry_path = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const char enchive_suffix[] = ".enchive";
|
static const char enchive_suffix[] = STR(ENCHIVE_FILE_EXTENSION);
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
char *name;
|
char *name;
|
||||||
|
|
Loading…
Reference in New Issue