*
* 1) This header remain in tact.
* 2) The prototype for getpass is not changed from:
- * char *getpass(const char *prompt)
+ * int getpass_r(const char *prompt, char *buffer, int buflen)
* 3) This source code is not used outside of this(getpass.c) file.
* 3) Any changes to this(getpass.c) source code are made publicly available.
*
# define perror(x) fprintf(stderr, "Error in: %s\n", x)
#endif
-int my_getpass(void *client, const char *prompt, char *buffer, int buflen)
+int getpass_r(const char *prompt, char *buffer, int buflen)
{
FILE *infp;
FILE *outfp;
#else /* WIN32 */
#include <stdio.h>
#include <conio.h>
-int my_getpass(void *client, const char *prompt, char *buffer, int buflen)
+int getpass_r(const char *prompt, char *buffer, int buflen)
{
int i;
printf("%s", prompt);
/*
* Returning non-zero will abort the continued operation!
*/
-int my_getpass(void *client, char *prompt, char* buffer, int buflen );
+int getpass_r(char *prompt, char* buffer, int buflen );
#endif
return CURLE_OK;
}
+int my_getpass(void *clientp, char *prompt, char* buffer, int buflen )
+{
+ return getpass_r(prompt, buffer, buflen);
+}
+
+
CURLcode curl_open(CURL **curl, char *url)
{
/* We don't yet support specifying the URL at this point */