Skip to content

Commit

Permalink
openconnect_set_xmlsha1() takes a const char *
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 1, 2012
1 parent a4ec42b commit 6112c7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library.c
Expand Up @@ -132,7 +132,7 @@ void openconnect_set_urlpath (struct openconnect_info *vpninfo, char *urlpath)
vpninfo->urlpath = urlpath;
}

void openconnect_set_xmlsha1 (struct openconnect_info *vpninfo, char *xmlsha1, int size)
void openconnect_set_xmlsha1 (struct openconnect_info *vpninfo, const char *xmlsha1, int size)
{
if (size != sizeof (vpninfo->xmlsha1))
return;
Expand Down
2 changes: 1 addition & 1 deletion openconnect.h
Expand Up @@ -158,7 +158,7 @@ void openconnect_set_urlpath (struct openconnect_info *, char *);

/* This function does *not* take ownership of the string; it's copied
into a static buffer in the vpninfo */
void openconnect_set_xmlsha1 (struct openconnect_info *, char *, int size);
void openconnect_set_xmlsha1 (struct openconnect_info *, const char *, int size);

void openconnect_set_cafile (struct openconnect_info *, char *);
void openconnect_setup_csd (struct openconnect_info *, uid_t, int silent, char *wrapper);
Expand Down

0 comments on commit 6112c7c

Please sign in to comment.