#undef NEED_REENTRANT
/* Define if you have the Kerberos4 libraries (including -ldes) */
-#undef KRB4
+#undef HAVE_KRB4
/* Define if you want to enable IPv6 support */
#undef ENABLE_IPV6
#undef NEED_REENTRANT
/* Define if you have the Kerberos4 libraries (including -ldes) */
-#undef KRB4
+#undef HAVE_KRB4
/* Define this to 'int' if ssize_t is not an available typedefed type */
#undef ssize_t
#include "http.h" /* for HTTP proxy tunnel stuff */
#include "ftp.h"
-#ifdef KRB4
+#ifdef HAVE_KRB4
#include "security.h"
#include "krb4.h"
#endif
if(!result)
code = atoi(buf);
-#ifdef KRB4
+#ifdef HAVE_KRB4
/* handle the security-oriented responses 6xx ***/
/* FIXME: some errorchecking perhaps... ***/
switch(code) {
return CURLE_FTP_WEIRD_SERVER_REPLY;
}
-#ifdef KRB4
+#ifdef HAVE_KRB4
/* if not anonymous login, try a secure login */
if(data->set.krb4) {
(the user logged in without password) */
infof(data, "We have successfully logged in\n");
if (conn->ssl[FIRSTSOCKET].use) {
-#ifdef KRB4
+#ifdef HAVE_KRB4
/* we are logged in (with Kerberos)
* now set the requested protection level
*/
}
}
-#ifdef KRB4
+#ifdef HAVE_KRB4
Curl_sec_fflush_fd(conn, conn->sock[SECONDARYSOCKET]);
#endif
/* shut down the socket to inform the server we're done */
#include "setup.h"
#ifndef CURL_DISABLE_FTP
-#ifdef KRB4
+#ifdef HAVE_KRB4
#include "security.h"
#include "base64.h"
return CURLE_OK;
}
-#endif /* KRB4 */
+#endif /* HAVE_KRB4 */
#endif /* CURL_DISABLE_FTP */
#include "setup.h"
#ifndef CURL_DISABLE_FTP
-#ifdef KRB4
+#ifdef HAVE_KRB4
#define _MPRINTF_REPLACE /* we want curl-functions instead of native ones */
#include <curl/mprintf.h>
#ifdef KRB5
/* not supported */
#endif
-#ifdef KRB4
+#ifdef HAVE_KRB4
&Curl_krb4_client_mech,
#endif
NULL
conn->mech=NULL;
}
-#endif /* KRB4 */
+#endif /* HAVE_KRB4 */
#endif /* CURL_DISABLE_FTP */
#define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h>
-#ifdef KRB4
+#ifdef HAVE_KRB4
#include "security.h"
#endif
#include <string.h>
#else
(void)conn;
#endif
-#ifdef KRB4
+#ifdef HAVE_KRB4
if(conn->sec_complete) {
bytes_written = Curl_sec_write(conn, sockfd, mem, len);
}
else
-#endif /* KRB4 */
+#endif /* HAVE_KRB4 */
{
bytes_written = swrite(sockfd, mem, len);
}
(void)conn;
#endif
*n=0; /* reset amount to zero */
-#ifdef KRB4
+#ifdef HAVE_KRB4
if(conn->sec_complete)
nread = Curl_sec_read(conn, sockfd, buf, buffersize);
else
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#ifdef KRB4
+#ifdef HAVE_KRB4
#include "security.h"
#endif
#define MAX(x,y) ((x)>(y)?(x):(y))
#endif
-#ifdef KRB4
+#ifdef HAVE_KRB4
/* Types needed for krb4-ftp connections */
struct krb4buffer {
void *data;
char *newurl; /* This can only be set if a Location: was in the
document headers */
-#ifdef KRB4
+#ifdef HAVE_KRB4
enum protection_level command_prot;
enum protection_level data_prot;
enum protection_level request_data_prot;
(void)num; /* no compiler warning please */
#endif
-#ifdef KRB4
+#ifdef HAVE_KRB4
sprintf(ptr, " krb4");
ptr += strlen(ptr);
#endif
#ifdef ENABLE_IPV6
| CURL_VERSION_IPV6
#endif
-#ifdef KRB4
+#ifdef HAVE_KRB4
| CURL_VERSION_KERBEROS4
#endif
#ifdef USE_SSLEAY