summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Updated eurephia.spec to work with 0.9.6_beta and openvpn-2.1_rc21betaDavid Sommerseth2009-11-181-4/+8
| | | | OpenVPN version is now set through a macro. And did also a cosmetic change as well.
* Merge commit 'origin/master'v0.9.6_betaDavid Sommerseth2009-11-131-1/+1
|\
| * BUGFIX: eurephiadm session key was truncatedDavid Sommerseth2009-11-121-1/+1
| | | | | | | | | | The session key was only 65 bytes, instead of 128 bytes due to wrong pointer calculation.
* | Fixed wrong usage of lower(digest) in eDBregister_attempts()David Sommerseth2009-11-131-8/+14
|/ | | | | | | This is a follow up of commit de7a3d88c78cdf400fcee78f71946da8b12ec74f.That commit introduced an SQL error when eDBregister_attempts() was attempting to update certificate digest attempt records. Overhauled and fixed the complete eDBregister_attempts() function.
* Certificate digests are always lower case.David Sommerseth2009-11-128-25/+31
| | | | | This makes sure that all interactions with the database will convert the digest strings to lower case.
* Add support for ft_STRING_LOWER in the sqlite3 driverDavid Sommerseth2009-11-121-7/+17
| | | | Also fixed some wrong tab/space issues
* Define certificate digests as ft_STRING_LOWERDavid Sommerseth2009-11-122-63/+63
| | | | This means this field will always be processed with lower case
* Removed not needed variableDavid Sommerseth2009-11-031-1/+1
|
* sqlite: Did not retrieve all certificate information correctlyDavid Sommerseth2009-11-031-10/+10
| | | | | On user accounts with several certificates associated, it did only list up one certificate several times.
* Make use of eurephiaXML_ParseResultMsg() in usercerts commandDavid Sommerseth2009-10-191-9/+9
|
* Make use of rpmbuild CFLAGS and build in verbose modeDavid Sommerseth2009-10-141-2/+2
|
* Include system wide CFLAGS when buildingDavid Sommerseth2009-10-142-9/+7
|
* Added missing docs to sub-packages in eurephia.specDavid Sommerseth2009-10-131-0/+5
|
* Restrict log length of mac addressDavid Sommerseth2009-10-131-2/+2
|
* Always process certificate depth as integerDavid Sommerseth2009-10-133-10/+11
|
* Added RPM spec file for building eurephia RPM packagesDavid Sommerseth2009-10-071-0/+120
|
* Fixed memory leak in the firewall implementation and added mlock() usageDavid Sommerseth2009-10-062-1/+25
| | | | | | | | | | | The memory leak was caused by not freeing the shadow context the firewall child process uses for logging. In addition this child process had a connection to the database open as well, which was not needed. This connection is now disconnected immediately after the child process has started. Added also usage of mlock() to protect sensitive information from being swapped out to disk.
* Don't log source filename and line number if DEBUG is not enabledDavid Sommerseth2009-10-061-7/+11
|
* Updated TODOv0.9.5_betaDavid Sommerseth2009-10-051-9/+8
|
* Removed duplicated documentationDavid Sommerseth2009-10-051-3/+2
|
* Added missing doxygen comments to environment.hDavid Sommerseth2009-10-051-17/+182
|
* 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