]> granicus.if.org Git - curl/commit
security: tighten enum protection_level usage.
authorJulien Chaffraix <julien.chaffraix@gmail.com>
Sat, 13 Nov 2010 20:01:33 +0000 (12:01 -0800)
committerJulien Chaffraix <julien.chaffraix@gmail.com>
Sat, 13 Nov 2010 22:12:43 +0000 (14:12 -0800)
commit8d59d69449c2a86c478699a50d920541aa106201
tree15ef9751b2d92dbd511c95d22d70ca61bdeec674
parent465865c3cb316907ca1c1ea813cf426a2366dce4
security: tighten enum protection_level usage.

While changing Curl_sec_read_msg to accept an enum protection_level
instead of an int, I went ahead and fixed the usage of the associated
fields.

Some code was assuming that prot_clear == 0. Fixed those to use the
proper value. Added assertions prior to any code that would set the
protection level.
lib/ftp.c
lib/krb4.c
lib/krb4.h
lib/pingpong.c
lib/security.c
lib/url.c
lib/urldata.h