summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed compile warnings 32bit platformsDavid Sommerseth2009-10-052-2/+4
|
* Use macros to extract values via get_env()David Sommerseth2009-10-054-42/+97
| | | | | This has two purposes. To make the code more readable and to use the same maximum length of the data being retrieved from the environment table.
* Only DEBUG log what get_env() will returnDavid Sommerseth2009-10-051-3/+3
|
* Moved the get_env() function into its own fileDavid Sommerseth2009-10-044-59/+144
|
* Updated CREDITS.txtDavid Sommerseth2009-10-041-0/+3
|
* Restrict input data length for plug-in arguments from openvpnDavid Sommerseth2009-10-043-10/+13
| | | | This only affects functions related to MAC address and certificate depth
* Fixed a few misbehaviours in eurephiadm users commandDavid Sommerseth2009-10-022-5/+1
|
* Tightening the building of the seeddata string even moreDavid Sommerseth2009-10-021-1/+1
| | | | This is a follow up of commit 80b41e27b7361633bee17c64bbb95490dc94ab9f
* Fixed possible integer overflow issueDavid Sommerseth2009-10-021-7/+7
| | | | | | | | | | | | | | | The eDBopen_session_seed() function was prune to an integer overflow issue, if the input data (some which comes from clients) exeeds the size_t max value which calloc() uses (via malloc_nullsafe()). The totlen variable was in addition defined as int and the totlen value was multiplied by 2. The fix was to use the maximum values used when calling get_env(). These values the maximum can then be added together to retrieve the maximum length of the seeddata string. This should also make the execution go slightly quicker as strlen_nullsafe() is no longer called for each of the input variables. In addition, there are no reasons to multiply the totlen value by two as it did. Credit goes to Larry Highsmith for noticing this potential problem.
* Removed not needed memset()'sDavid Sommerseth2009-10-021-2/+0
|
* Modified get_env() function to limit number of bytes to extractDavid Sommerseth2009-10-023-60/+152
| | | | | This is to enhance the security and to avoid possible buffer overflows based on input received from the client
* Fixed some memory issues and a memory leak in passwd.cDavid Sommerseth2009-10-021-2/+5
|
* Fixed wrong define string for include filenameDavid Sommerseth2009-09-301-2/+2
|
* Merge branch 'syslog'David Sommerseth2009-09-2812-141/+423
|\
| * Added extra parameter to eurephia_log_init() to set log ident for syslogDavid Sommerseth2009-09-247-11/+15
| |
| * Added missing doxygen comments after the last eurephia_log() improvementsDavid Sommerseth2009-09-242-1/+14
| | | | | | | | Ref. commit: f2a4f0412bc1f7b9069ecbcce8f5599f46f757e0
| * Improved file logging, providing source file and line number infoDavid Sommerseth2009-09-243-10/+24
| | | | | | | | | | Also changed malloc_nullsafe() and free_nullsafe() to report directly which file:line which called the malloc/free function.
| * Added missing header file and corrected doxygen errorsDavid Sommerseth2009-09-242-1/+96
| |
| * Rewritten the eurephia_log() to support syslog logging as wellDavid Sommerseth2009-09-249-131/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also simplified the initialisation of the logging module. By calling the eurephia_log_init(eurephiaCTX *, char *dest, int loglevel) function, a log context will be setup inside the eurephiaCTX. To close the log file, eurephia_log_close(eurephiaCTX *) must be called. The destination string to eurephia_log_init() can be: - stdout: Log everything to stdout - stderr: Log everything to stderr - none: Do no logging at all - syslog:<facility> Log via syslog. <facility> can be: user, local[0-7], daemon or authpriv. - Filename All logging goes to the given filename. If the filename string is not recognised by any of the reserved words above, it will be handled as a filename.
* | Corrected some new Doxygen issuesDavid Sommerseth2009-09-282-3/+4
| |
* | Reworked and unified admin authentication and registration functions to ↵David Sommerseth2009-09-284-134/+362
| | | | | | | | | | | | | | | | eDBadminAuthenticate() eDBadminAuth(), eDBadminValidateSession(), eDBadminRegisterLogin() and eDBadminLogout() are now unfied into one admin function, eDBadminAuthenticate(). This function receives all input as eurephia XML documents.
* | Moved the remainings of administration.c into administration/authentication.cDavid Sommerseth2009-09-272-2/+2
| |
* | Code clean up. Moved xmlReplaceChars() to eurephia_xml.cDavid Sommerseth2009-09-278-31/+23
| |
* | Moved user creation info from log level 0 to log level 1David Sommerseth2009-09-271-1/+1
| | | | | | | | | | This is to avoid the console programs to report to stderr if log file is not setup. Console applications use stderr in these situations.
* | Fixed some memory leaks in eurephia_init, especially in error situationsDavid Sommerseth2009-09-271-12/+30
| |
* | Reworked eurephia_init to use the new eDBadminUserAccount() APIDavid Sommerseth2009-09-271-14/+66
| |
* | Fixed missing check in eDBadminValidateSession() against interface typeDavid Sommerseth2009-09-271-2/+3
| |
* | Cosmetic cleanupDavid Sommerseth2009-09-271-8/+4
| |
* | Rewrote eurephiadm users --delete mode to work with the new ↵David Sommerseth2009-09-271-18/+21
| | | | | | | | eDBadminUserAccount() API
* | Fixed a memory leak when updating user accounts in eDBadminUserAccount()David Sommerseth2009-09-271-0/+1
| |
* | Make eurephiaXML_ParserResultMsg() return NULL if input XML document pointer ↵David Sommerseth2009-09-271-1/+4
| | | | | | | | is NULL
* | Updated version, for the comming 0.9.5_beta releaseDavid Sommerseth2009-09-261-1/+1
| |
* | Added misc. compiler optimisationsDavid Sommerseth2009-09-263-9/+15
| |
* | Fixed memory leak when sqlite_query() failsDavid Sommerseth2009-09-261-0/+1
| |
* | Moved from bzero() to memset()David Sommerseth2009-09-261-1/+1
| |
* | Rewrote sqlite_get_num_tuples() and sqlite_get_affected_rows() as macrosDavid Sommerseth2009-09-262-26/+21
| |
* | Fixed SEGV error when calling sqlite_dump_result() on dbresults from other ↵David Sommerseth2009-09-261-2/+3
| | | | | | | | queries than SELECT
* | Made eurephiadm users --show, --activate, --deactivate and --password modes ↵David Sommerseth2009-09-264-47/+95
| | | | | | | | | | | | working again Rewritten to use the new eDBadminUserAccount() API.
* | Removed a memory leakDavid Sommerseth2009-09-261-0/+1
| |
* | Don't assert() if the input XML doc to eurephiaXML_IsResult() is NULL.David Sommerseth2009-09-261-1/+4
| |
* | Added extra check on node pointer, to avoid possible SEGVDavid Sommerseth2009-09-261-1/+1
| |
* | Only add table alias in SQL 'WHERE' sectionsDavid Sommerseth2009-09-261-1/+1
| |
* | Rewrote eurephiadm usres --add to work with the new eDBadminUserAccount() APIDavid Sommerseth2009-09-251-13/+36
| |
* | Renamed some variables to have a more meaningful nameDavid Sommerseth2009-09-251-5/+7
| |
* | Made eurephiadm users --list work with the new eDBadminUserAccess() APIDavid Sommerseth2009-09-252-9/+50
| |
* | Added better error handling in eDBadminUserAccount() view mode (useracc_list())David Sommerseth2009-09-251-4/+7
| |
* | eDBmkSortKeyString() will now return NULL if the result is emptyDavid Sommerseth2009-09-251-1/+1
| |
* | Added eurephiaXML_IsResultMsg() to check if an XML doc is a ResultMsg documentDavid Sommerseth2009-09-252-0/+17
| |
* | Made the sortkeys work in eDBadminUserAccount() view modeDavid Sommerseth2009-09-251-7/+8
| |
* | Rewrote the eDBmkSortKeys() function to use the eDBfieldMap returned from ↵David Sommerseth2009-09-254-12/+15
| | | | | | | | eDBxmlMapping()