x509: add proper const attributes, change x509parse_cert_info interface
commit64b07b474b8116b92a8b76eee74f39f4208fd100
authorWilliam Smith <wsmith1@mail.ru>
Mon, 14 Jan 2013 01:17:01 +0000 (13 20:17 -0500)
committerWilliam Smith <wsmith1@mail.ru>
Mon, 14 Jan 2013 01:48:08 +0000 (13 20:48 -0500)
treec2dfa93a5a1c621718bfa58c19d3ab85025bd8b0
parent12e90334e0f9c18a7d10911af74266d96dba91f1
x509: add proper const attributes, change x509parse_cert_info interface

Add proper const attribute to function arguments in
x509.

Change interface of x509parse_cert_info to have
the output buffer provided by caller.

const attribute is added to function arguments and
variables in order to allow compiler checks with
-Wbad-function-cast, -Wcast-qual and
-Wwrite-strings warnings options.
include/tropicssl/x509.h
library/debug.c
library/x509parse.c
programs/ssl/ssl_client2.c