Changeset a6005da
- Timestamp:
- 2016-03-25T18:07:53Z (9 years ago)
- Branches:
- master
- Children:
- 50bb490
- Parents:
- 8e6ecfe
- git-author:
- Dennis Kaarsemaker <dennis@…> (23-02-16 18:52:32)
- git-committer:
- Dennis Kaarsemaker <dennis@…> (25-03-16 18:07:53)
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
r8e6ecfe ra6005da 3 3 4 4 script: 5 - ./configure 5 - ./configure --pam=1 6 6 - make check 7 7 - BITLBEE_SKYPE=plugin dpkg-buildpackage -uc -us -d … … 29 29 - libpurple-dev 30 30 - check 31 - libpam0g-dev 31 32 coverity_scan: 32 33 project: … … 34 35 description: "An IRC to other chat networks gateway" 35 36 notification_email: dx@dxzone.com.ar 36 build_command_prepend: ./configure --otr=1 --debug=1 37 build_command_prepend: ./configure --otr=1 --debug=1 --pam=1 37 38 build_command: make 38 39 branch_pattern: coverity_scan -
auth.c
r8e6ecfe ra6005da 1 1 #define BITLBEE_CORE 2 2 #include "bitlbee.h" 3 4 #ifdef WITH_PAM 5 extern auth_backend_t auth_pam; 6 #endif 3 7 4 8 GList *auth_init(const char *backend) … … 6 10 GList *gl = NULL; 7 11 int ok = backend ? 0 : 1; 12 #ifdef WITH_PAM 13 gl = g_list_append(gl, &auth_pam); 14 if (backend && !strcmp(backend, "pam")) { 15 ok = 1; 16 } 17 #endif 8 18 9 19 return ok ? gl : NULL; -
bitlbee.conf
r8e6ecfe ra6005da 61 61 ## accounts people create to be stored in plain text instead of encrypted with 62 62 ## their bitlbee password. 63 ## 64 ## Currently available backends: 65 ## 66 ## - storage (internal storage) 67 ## - pam (Linux PAM authentication) 63 68 # 64 69 # AuthBackend = storage -
conf.c
r8e6ecfe ra6005da 245 245 if (g_strcasecmp(ini->value, "storage") == 0) { 246 246 conf->auth_backend = NULL; 247 } else if (g_strcasecmp(ini->value, "pam") == 0) { 248 g_free(conf->auth_backend); 249 conf->auth_backend = g_strdup(ini->value); 247 250 } else { 248 251 fprintf(stderr, "Invalid %s value: %s\n", ini->key, ini->value); -
configure
r8e6ecfe ra6005da 52 52 ssl=auto 53 53 54 pam=0 55 54 56 pie=1 55 57 … … 133 135 --purple=0/1 Disable/enable libpurple support $purple 134 136 (automatically disables other protocol modules) 137 138 --pam=0/1 Disable/enable PAM authentication $pam 135 139 136 140 --doc=0/1 Disable/enable help.txt generation $doc … … 631 635 authobjs= 632 636 authlibs= 637 if [ "$pam" = 0 ]; then 638 echo '#undef WITH_PAM' >> config.h 639 else 640 if ! echo '#include <security/pam_appl.h>' | $CC -E - >/dev/null 2>/dev/null; then 641 echo 'Cannot find libpam development libraries, aborting. (Install libpam0g-dev?)' 642 exit 1 643 fi 644 echo '#define WITH_PAM' >> config.h 645 authobjs=$authobjs'auth_pam.o ' 646 authlibs=$authlibs'-lpam ' 647 fi 633 648 echo AUTH_OBJS=$authobjs >> Makefile.settings 634 649 echo EFLAGS+=$authlibs >> Makefile.settings -
tests/Makefile
r8e6ecfe ra6005da 15 15 distclean: clean 16 16 17 main_objs = bitlbee.o conf.o dcc.o help.o ipc.o irc.o irc_cap.o irc_channel.o irc_commands.o irc_im.o irc_send.o irc_user.o irc_util.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o auth.o 17 main_objs = bitlbee.o conf.o dcc.o help.o ipc.o irc.o irc_cap.o irc_channel.o irc_commands.o irc_im.o irc_send.o irc_user.o irc_util.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o auth.o auth_pam.o 18 18 19 19 test_objs = check.o check_util.o check_nick.o check_md5.o check_arc.o check_irc.o check_help.o check_user.o check_set.o check_jabber_sasl.o check_jabber_util.o
Note: See TracChangeset
for help on using the changeset viewer.