"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/auth.c" between
tin-2.6.0.tar.xz and tin-2.6.1.tar.xz

About: TIN is a threaded NNTP and spool based UseNet newsreader.

auth.c  (tin-2.6.0.tar.xz):auth.c  (tin-2.6.1.tar.xz)
/* /*
* Project : tin - a Usenet reader * Project : tin - a Usenet reader
* Module : auth.c * Module : auth.c
* Author : Dirk Nimmich <nimmich@muenster.de> * Author : Dirk Nimmich <nimmich@muenster.de>
* Created : 1997-04-05 * Created : 1997-04-05
* Updated : 2018-06-04 * Updated : 2018-06-04
* Notes : Routines to authenticate to a news server via NNTP. * Notes : Routines to authenticate to a news server via NNTP.
* DON'T USE get_respcode() THROUGHOUT THIS CODE. * DON'T USE get_respcode() THROUGHOUT THIS CODE.
* *
* Copyright (c) 1997-2021 Dirk Nimmich <nimmich@muenster.de> * Copyright (c) 1997-2022 Dirk Nimmich <nimmich@muenster.de>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* *
* 1. Redistributions of source code must retain the above copyright notice, * 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer. * this list of conditions and the following disclaimer.
* *
* 2. Redistributions in binary form must reproduce the above copyright * 2. Redistributions in binary form must reproduce the above copyright
skipping to change at line 390 skipping to change at line 390
} }
# endif /* DEBUG */ # endif /* DEBUG */
ret = do_authinfo_user(server, authuser, authpass); ret = do_authinfo_user(server, authuser, authpass);
if (ret != OK_AUTH) if (ret != OK_AUTH)
already_failed = TRUE; already_failed = TRUE;
/* /*
* giganews once responded to CAPABILITIE S with just * giganews once responded to CAPABILITIE S with just
* "VERSION 2", no mode-switching indicat ion, no reader * "VERSION 2", no mode-switching indicat ion, no reader
* indication, no post indication, no aut hentication * indication, no post indication, no aut hentication
* indication, ... so in case AUTHINFO US ER/PASS succeeds * indication, ... so in case AUTHINFO US ER/PASS succeeds
* if not advertized we simply go on but fully ignore * if not advertised we simply go on but fully ignore
* CAPABILITIES * CAPABILITIES
*/ */
if (nntp_caps.type == CAPABILITIES && !nn tp_caps.authinfo_user && !nntp_caps.authinfo_sasl && ret == OK_AUTH) if (nntp_caps.type == CAPABILITIES && !nn tp_caps.authinfo_user && !nntp_caps.authinfo_sasl && ret == OK_AUTH)
nntp_caps.type = BROKEN; nntp_caps.type = BROKEN;
} }
} }
initialized = TRUE; initialized = TRUE;
my_retouch(); /* Get rid of the chaff * / my_retouch(); /* Get rid of the chaff * /
} else { } else {
/* /*
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)