This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1000378] New: ATHTTPD Authorization-required string needs commas


https://bugzilla.ecoscentric.com/show_bug.cgi?id=1000378

           Summary: ATHTTPD Authorization-required string needs commas
           Product: eCos
           Version: 2.0
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: high
         Component: Other
        AssignedTo: jifl@ecoscentric.com
        ReportedBy: bugzilla_rmvthis@ds3switch.com
         QAContact: ecos-bugs@sources.redhat.com


ATHTTPD is generating an invalid 401 CYG_HTTPD_STATUS_NOT_AUTHORIZED header string which prevents IE6 (perhaps others) from using MD5 authorization to login.

Several commas must be added in
http.c:cyg_httpd_format_header():612

            sprintf(httpstate.outbuffer + strlen(httpstate.outbuffer),
-                    "WWW-Authenticate: Digest realm=\"%s\" ",
+                    "WWW-Authenticate: Digest realm=\"%s\", ",
                     httpstate.needs_auth->auth_domainname);
            strftime(cyg_httpd_md5_nonce, 
                     33,
                     TIME_FORMAT_RFC1123,
                     gmtime(&time_val));
            sprintf(httpstate.outbuffer + strlen(httpstate.outbuffer),
-                    "nonce=\"%s\" ", cyg_httpd_md5_nonce);
+                    "nonce=\"%s\", ", cyg_httpd_md5_nonce);
            sprintf(httpstate.outbuffer + strlen(httpstate.outbuffer),
-                    "opaque=\"%s\" ", 
+                    "opaque=\"%s\", ",

-- 
Configure bugmail: https://bugzilla.ecoscentric.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]