From bcf1b9dec13badd073518e1d63aab40a958d9245 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 3 May 2013 13:26:25 +0200 Subject: unit1394.c: plug the curl tool unit test in --- src/tool_getparam.c | 9 ++++++--- src/tool_getparam.h | 6 ++++++ 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 429f12bda..fb8270894 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -290,9 +290,12 @@ static const struct feat feats[] = { * We allow ':' and '\' to be escaped by '\' so that we can use certificate * nicknames containing ':'. See * for details. */ -static void parse_cert_parameter(const char *cert_parameter, - char **certname, - char **passphrase) +#ifndef UNITTESTS +static +#endif +void parse_cert_parameter(const char *cert_parameter, + char **certname, + char **passphrase) { size_t param_length = strlen(cert_parameter); size_t span; diff --git a/src/tool_getparam.h b/src/tool_getparam.h index 38f0674f4..a86bfcec6 100644 --- a/src/tool_getparam.h +++ b/src/tool_getparam.h @@ -45,5 +45,11 @@ ParameterError getparameter(char *flag, bool *usedarg, struct Configurable *config); +#ifdef UNITTESTS +void parse_cert_parameter(const char *cert_parameter, + char **certname, + char **passphrase); +#endif + #endif /* HEADER_CURL_TOOL_GETPARAM_H */ -- cgit v1.2.3