mirror of
https://github.com/curl/curl.git
synced 2026-08-25 20:13:35 +03:00
unit1394.c: plug the curl tool unit test in
This commit is contained in:
parent
b045d079f8
commit
bcf1b9dec1
5 changed files with 98 additions and 8 deletions
|
|
@ -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 <https://sourceforge.net/p/curl/bugs/1196/>
|
||||
* 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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue