-tbd version 0.4-beta Beryllium
+tbd version 1.0 Beryllium
+* final 1.0 working version
* added perl as default allowed file
* added shellscript to the default allowed files
* added html and js to the default allowed files
to clean old pastes. See clean-cronjob.txt for more
details
* Multiple secrets are now supported
+* added a c client which can be build with the makefile
2020101 version 0.3-beta Lithium
* Update information now included
} else {
printf("ERROR: Configfile '%s' not found.\n",configFilePath);
if(arguments.create_config_file == 1) {
- if(arguments.verbose) printf("Creating configfile: '%s'\n", configFilePath);
+ printf("Creating configfile: '%s'\n", configFilePath);
FILE *fp = fopen(configFilePath, "w");
if (fp) {
fputs("# selfpaste config file.\n", fp);
fprintf(fp, "# See %s for more details.\n", argp_program_bug_address);
fprintf(fp, "# Version: %s\n", argp_program_version);
- fprintf(fp, "SELFPASTE_SECRET=%s\n", randomString(50));
+ fprintf(fp, "SELFPASTE_UPLOAD_SECRET=%s\n", randomString(50));
+ fputs("ENDPOINT=http://you-seflpaste-endpoi.nt\n", fp);
fclose(fp);
- if(arguments.verbose) printf("Config file '%s' created.\n", configFilePath);
+
+ printf("Config file '%s' created.\nPlease update your settings!\n", configFilePath);
+ return(0);
}
else {
printf("ERROR: Configfile '%s' could not be written.\n",configFilePath);
- return(1);
}
}
+ return(1);
}
return(0);
To create this file just copy selfpaste.default.sh to selfpaste.sh and
make sure you change ENDPOINT and SELFPASTE_UPLOAD_SECRET.
+A c client is available to be build with makefile. Build and see included
+help for more information.
+
Requirements to create a new client are:
- Talk to the selfpaste endpoint over HTTP(S)