dav/main.c

branch
v1.1
changeset 342
0b03aa8fb838
parent 318
7e0694423838
child 343
b9c6e0be5774
equal deleted inserted replaced
341:7954fdacdb5c 342:0b03aa8fb838
792 // TODO: free 792 // TODO: free
793 return -1; 793 return -1;
794 } 794 }
795 } 795 }
796 796
797 // if encryption is requested, but we still don't know the key, abort
798 if (DAV_IS_ENCRYPTED(sn) && !(sn->key)) {
799 fprintf(stderr, "Encryption has been requested, "
800 "but no default key is configured.\n"
801 "You may specify a custom key with the '-k' option.\n");
802 return -1;
803 }
804
797 int ret; 805 int ret;
798 if(!strcmp(file, "-")) { 806 if(!strcmp(file, "-")) {
799 FILE *in = stdin; 807 FILE *in = stdin;
800 ret = put_file(repo, a, sn, path, "stdin", in, 0); 808 ret = put_file(repo, a, sn, path, "stdin", in, 0);
801 } else { 809 } else {

mercurial