return 1;
}
W3_Library_Init();
- struct W3* w3 = W3_Create("http", argv[1], 80);
+ struct W3* w3 = W3_Create("https", argv[1], 443);
if(w3 != NULL){
W3_Set_Read_Size(w3, 1024);
W3_Set_Method(w3, argv[3] == NULL ? "GET" : argv[3]);
*o_ssl = NULL;
close(sock);
sock = -1;
-
}else{
__W3_Debug("SSL", "Connected");
}
ifeq ($(WINDOWS),YES)
./w3.dll: $(OBJS)
- $(CC) $(LDFLAGS) -shared -Wl,--out-implib,./w3.lib -o $@ $^ $(LIBS)
+ $(CC) $(LDFLAGS) -L../openssl/lib/mingw/x64 -shared -Wl,--out-implib,./w3.lib -o $@ $^ $(LIBS)
else
./libw3.so: $(OBJS)
$(CC) $(LDFLAGS) -shared -o $@ $^ $(LIBS)
endif
./%.o: ./%.c W3%.h
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) -I../openssl/include -c -o $@ $<
clean:
rm -f *.o *.so *.core *~ *.dll *.lib *.a *.res