Commit aff630a9 authored by Vadim Kazakov's avatar Vadim Kazakov

try to compile with winegcc, still have errors

parent babf3033
TARGET=x86_64-windows
client=sspi-client
server=sspi-server
all:
winegcc -b $(TARGET) $(server).c -o $(server).exe -lsecur32 -lws2_32
winegcc -b $(TARGET) $(client).c -o $(client).exe -lsecur32 -lws2_32
server:
winegcc -b $(TARGET) $(server).c -o $(server).exe -lsecur32 -lws2_32
client:
winegcc -b $(TARGET) $(client).c -o $(client).exe -lsecur32 -lws2_32
......@@ -5,4 +5,20 @@ $ gcc -o sspi-client.exe sspi-client.c -lws2_32 -lsecur32
$ gcc -o sspi-server.exe sspi-server.c -lws2_32 -lsecur32
```
**ServerName and TargetName must be changed to launch program!**
\ No newline at end of file
**ServerName and TargetName must be changed to launch program!**
При компиляции с winegcc получаю ошибку:
команда для компиляции:
```
winegcc -b i686-windows sspi-client.c -o sspi-client.exe -lsecur32 -lws2_32
```
ошибка:
```
sspi-client.c:313:48: error: use of undeclared identifier 'NEGOSSP_NAME'
313 | static PTCHAR lpPackageName = (PTCHAR) NEGOSSP_NAME;
|
```
Compilation
```Shell
$ gcc -o sspi-client.exe sspi-client.c -lws2_32 -lsecur32
$ gcc -o sspi-server.exe sspi-server.c -lws2_32 -lsecur32
```
**ServerName and TargetName must be changed to launch program!**
......@@ -18,7 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <schannel.h>
#include <Security.h>
#include <security.h>
#include "SspiExample.h"
CredHandle hCred;
......@@ -28,8 +28,8 @@ struct _SecHandle hcText;
// be defined as the name of the computer running the server sample.
// TargetName must be defined as the logon name of the user running
// the server program.
#define ServerName "Server_Computer_Name"
#define TargetName "Server_User_Logon_Name"
#define ServerName "builder64"
#define TargetName "xipster"
void main()
{
......
This diff is collapsed. Click to expand it.
......@@ -9,7 +9,7 @@
#include <winsock.h>
#include <stdio.h>
#include <stdlib.h>
#include "Sspiexample.h"
#include "SspiExample.h"
CredHandle hcred;
struct _SecHandle hctxt;
......
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment