#include "putty.h"
+#define SECURITY_WIN32
#include <security.h>
#include "pgssapi.h"
if (ret == ERROR_SUCCESS && type == REG_SZ) {
buffer = snewn(size + 20, char);
ret = RegQueryValueEx(regkey, "InstallDir", NULL,
- &type, buffer, &size);
+ &type, (LPBYTE)buffer, &size);
if (ret == ERROR_SUCCESS && type == REG_SZ) {
strcat(buffer, "\\bin\\gssapi32.dll");
module = LoadLibrary(buffer);
Ssh_gss_ctx ctx, Ssh_gss_buf *buf)
{
winSsh_gss_ctx *winctx = (winSsh_gss_ctx *) ctx;
- char *msg;
+ const char *msg;
if (winctx == NULL) return SSH_GSS_FAILURE;