diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2016-11-24 20:42:26 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2016-11-24 20:42:26 -0500 |
commit | 8e90b748a51b502a3b0430d58cfbc7954d4a801d (patch) | |
tree | b21a6586b444c3604344c862c204083f7fb266af /WWW/Library/Implementation/HTAABrow.c | |
parent | da3e74522784403f7b98fb00637209557a87c0f3 (diff) | |
download | lynx-snapshots-8e90b748a51b502a3b0430d58cfbc7954d4a801d.tar.gz |
snapshot of project "lynx", label v2-8-9dev_11c
Diffstat (limited to 'WWW/Library/Implementation/HTAABrow.c')
-rw-r--r-- | WWW/Library/Implementation/HTAABrow.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/WWW/Library/Implementation/HTAABrow.c b/WWW/Library/Implementation/HTAABrow.c index f1d3c313..31a0a469 100644 --- a/WWW/Library/Implementation/HTAABrow.c +++ b/WWW/Library/Implementation/HTAABrow.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTAABrow.c,v 1.40 2013/11/28 11:11:05 tom Exp $ + * $LynxId: HTAABrow.c,v 1.41 2016/11/24 15:14:00 tom Exp $ * * MODULE HTAABrow.c * BROWSER SIDE ACCESS AUTHORIZATION MODULE @@ -150,8 +150,6 @@ void HTAAForwardAuth_set(const char *scheme_name, if ((HTAAForwardAuth = typecallocn(char, len)) == 0) outofmem(__FILE__, "HTAAForwardAuth_set"); - assert(HTAAForwardAuth != 0); - strcpy(HTAAForwardAuth, "Authorization: "); if (scheme_name) { strcat(HTAAForwardAuth, scheme_name); @@ -196,8 +194,6 @@ static HTAAServer *HTAAServer_new(const char *hostname, if ((server = typecalloc(HTAAServer)) == 0) outofmem(__FILE__, "HTAAServer_new"); - assert(server != NULL); - server->hostname = NULL; server->portnumber = (portnumber > 0 ? portnumber : 80); server->IsProxy = (BOOLEAN) IsProxy; @@ -399,8 +395,6 @@ static HTAASetup *HTAASetup_new(HTAAServer *server, char *ctemplate, if ((setup = typecalloc(HTAASetup)) == 0) outofmem(__FILE__, "HTAASetup_new"); - assert(setup != NULL); - setup->retry = NO; setup->server = server; setup->ctemplate = NULL; @@ -523,8 +517,6 @@ static HTAARealm *HTAARealm_new(HTList *realm_table, if ((realm = typecalloc(HTAARealm)) == 0) outofmem(__FILE__, "HTAARealm_new"); - assert(realm != NULL); - realm->realmname = NULL; realm->username = NULL; realm->password = NULL; @@ -679,8 +671,6 @@ static char *compose_auth_string(HTAAScheme scheme, HTAASetup * setup, int IsPro if ((cleartext = typecallocn(char, len)) == 0) outofmem(__FILE__, "compose_auth_string"); - assert(cleartext != NULL); - if (realm->username) strcpy(cleartext, realm->username); else @@ -927,8 +917,6 @@ char *HTAA_composeAuth(const char *hostname, if ((HTAA_composeAuthResult = typecallocn(char, len)) == 0) outofmem(__FILE__, "HTAA_composeAuth"); - assert(HTAA_composeAuthResult != NULL); - strcpy(HTAA_composeAuthResult, "Proxy-Authorization: "); } else { @@ -1007,8 +995,6 @@ char *HTAA_composeAuth(const char *hostname, if ((HTAA_composeAuthResult = typecallocn(char, len)) == 0) outofmem(__FILE__, "HTAA_composeAuth"); - assert(HTAA_composeAuthResult != NULL); - strcpy(HTAA_composeAuthResult, "Authorization: "); } @@ -1109,8 +1095,6 @@ BOOL HTAA_shouldRetryWithAuth(char *start_of_headers, if (!scheme_specifics) outofmem(__FILE__, "HTAA_shouldRetryWithAuth"); - assert(scheme_specifics != NULL); - for (i = 0; i < HTAA_MAX_SCHEMES; i++) scheme_specifics[i] = NULL; } |