mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
added pcptext_infile(), used with pcp1 -t -I $file, which determines filetype
by content. minor debugging changes.
This commit is contained in:
@@ -234,7 +234,7 @@ int main (int argc, char **argv) {
|
||||
if(vault != NULL) {
|
||||
switch (mode) {
|
||||
case PCP_MODE_KEYGEN:
|
||||
pcp_keygen(xpass);
|
||||
pcp_keygen(xpass, outfile);
|
||||
if(xpass != NULL)
|
||||
free(xpass);
|
||||
break;
|
||||
@@ -309,9 +309,12 @@ int main (int argc, char **argv) {
|
||||
break;
|
||||
|
||||
case PCP_MODE_TEXT:
|
||||
if(! useid) {
|
||||
if(! useid && infile == NULL) {
|
||||
pcptext_vault(vault);
|
||||
}
|
||||
else if(infile != NULL) {
|
||||
pcptext_infile(infile);
|
||||
}
|
||||
else {
|
||||
id = pcp_normalize_id(keyid);
|
||||
if(id != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user