Skip to content
Snippets Groups Projects
  • Daniel Stenberg's avatar
    710f14ed
    handler: make 'protocol' always specified as a single bit · 710f14ed
    Daniel Stenberg authored
    This makes the findprotocol() function work as intended so that libcurl
    can properly be restricted to not support HTTP while still supporting
    HTTPS - since the HTTPS handler previously set both the HTTP and HTTPS
    bits in the protocol field.
    
    This fixes --proto and --proto-redir for most SSL protocols.
    
    This is done by adding a few new convenience defines that groups HTTP
    and HTTPS, FTP and FTPS etc that should then be used when the code wants
    to check for both protocols at once. PROTO_FAMILY_[protocol] style.
    
    Bug: https://github.com/bagder/curl/pull/97
    Reported-by: drizzt
    710f14ed
    History
    handler: make 'protocol' always specified as a single bit
    Daniel Stenberg authored
    This makes the findprotocol() function work as intended so that libcurl
    can properly be restricted to not support HTTP while still supporting
    HTTPS - since the HTTPS handler previously set both the HTTP and HTTPS
    bits in the protocol field.
    
    This fixes --proto and --proto-redir for most SSL protocols.
    
    This is done by adding a few new convenience defines that groups HTTP
    and HTTPS, FTP and FTPS etc that should then be used when the code wants
    to check for both protocols at once. PROTO_FAMILY_[protocol] style.
    
    Bug: https://github.com/bagder/curl/pull/97
    Reported-by: drizzt