Fossil

Check-in [fd928b6e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:added missing return type in login_basic_authentication() definition.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fd928b6ef9a3f9686ae403c1131005c1f04790e8bc83c75a912528185fe70e26
User & Date: stephan 2017-03-15 00:31:56
Context
2017-03-15
00:41
Added missing reference to the -json-input flag for the json command. check-in: 2accaaee user: stephan tags: trunk
00:31
added missing return type in login_basic_authentication() definition. check-in: fd928b6e user: stephan tags: trunk
00:19
Simplify the Basic Authentication implementation, removing the need for the strtok_r() library function. check-in: 2e76b99f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/login.c.

850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
}


/*
** Attempt to use Basic Authentication to establish the user.  Return the
** (non-zero) uid if successful.  Return 0 if it does not work.
*/
static logic_basic_authentication(const char *zIpAddr){
  const char *zAuth = PD("HTTP_AUTHORIZATION", 0);
  int i;
  int uid = 0;
  int nDecode = 0;
  char *zDecode = 0;
  const char *zUsername = 0;
  const char *zPasswd = 0;







|







850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
}


/*
** Attempt to use Basic Authentication to establish the user.  Return the
** (non-zero) uid if successful.  Return 0 if it does not work.
*/
static int logic_basic_authentication(const char *zIpAddr){
  const char *zAuth = PD("HTTP_AUTHORIZATION", 0);
  int i;
  int uid = 0;
  int nDecode = 0;
  char *zDecode = 0;
  const char *zUsername = 0;
  const char *zPasswd = 0;