forked from rafaelsteil/libcgi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a first step to make libcgi compliant to the REUSE initiative: https://reuse.software/ We do this here before adding new files to the project. Note: this is not complete, especially the following parts will take additional attention: * `test/trim.c` is in the public domain, SPDX has no identifier for that and it is not clear how to handle such situations. * It is not clear where `src/md5.c` comes from, but it's deprecated anyway, so it will be removed in the future, circumventing any licensing problems with it. Also see rafaelsteil#15 for that. * There is no license applied to any code in the 'examples' folder, yet.
- Loading branch information
Showing
23 changed files
with
142 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# | ||
# Copyright 2013,2016–2018 Alexander Dahl <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1+ | ||
# License-Filename: LICENSES/LGPL-2.1.txt | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.1) | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MIT License | ||
|
||
Copyright (c) 2001 Bob Trower, Trantor Standard Systems Inc. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# | ||
# Copyright 2018 Alexander Dahl <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1+ | ||
# License-Filename: LICENSES/LGPL-2.1.txt | ||
# | ||
|
||
configure_file( | ||
"${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001 Rafael Steil | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
#ifndef _CGI_H | ||
#define _CGI_H 1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
/* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#ifndef _ERROR_H | ||
#define _ERROR_H 1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001 Rafael Steil | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#ifndef _SESSION_H | ||
#define _SESSION_H 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# | ||
# Copyright 2013,2016,2018 Alexander Dahl <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1+ | ||
# License-Filename: LICENSES/LGPL-2.1.txt | ||
# | ||
|
||
set(CGI_SRC | ||
base64.c | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001 Rafael Steil | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#include <stddef.h> | ||
#include <stdio.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001 Rafael Steil | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
/* | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdarg.h> | ||
#include <stdlib.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001 Rafael Steil | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <string.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001 Rafael Steil | ||
Copyright 2016 Alexander Dahl <[email protected]> | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* Copyright 2016 Alexander Dahl <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stddef.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001 Rafael Steil | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
/***************************************************** | ||
* The variables/functions beginning with sess_ are | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
/* | ||
LibCGI - A library to make CGI programs using C | ||
Copyright (C) 2001/2002 Rafael Steil | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
You can contact the author by e-mail: [email protected] | ||
*/ | ||
* LibCGI - A library to make CGI programs using C | ||
* | ||
* Copyright 2001,2002 Rafael Steil <[email protected]> | ||
* | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <string.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# | ||
# Copyright 2016–2018 Alexander Dahl <[email protected]> | ||
# | ||
# SPDX-License-Identifier: LGPL-2.1+ | ||
# License-Filename: LICENSES/LGPL-2.1.txt | ||
# | ||
|
||
# misc | ||
add_executable(cgi-test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
/*******************************************************************//** | ||
* @file cgi_test.c | ||
* @file cgi_test.c | ||
* | ||
* Actual test routines checking stuff we want to check in unit tests. | ||
* | ||
* @author Alexander Dahl <[email protected]> | ||
* @author Alexander Dahl <[email protected]> | ||
* | ||
* Copyright 2016 Alexander Dahl | ||
* SPDX-License-Identifier: LGPL-2.1+ | ||
* License-Filename: LICENSES/LGPL-2.1.txt | ||
* | ||
* @copyright 2016 Alexander Dahl <[email protected]> | ||
**********************************************************************/ | ||
|
||
#include "cgi_test.h" | ||
|
Oops, something went wrong.