From 4fe95cc1e7412e309d026e53cd44239bd3ef031d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Sep 2017 16:11:15 -0400 Subject: Wii can now send a POST request to a website The extractor now uses libfat to read a config file off the root of the SD card, a model for which is included in the repository. The extractor is capable of negotiating an HTTPS connection, but it requires a download of the target site's root CA certificate to be on the SD card and pointed at by the config file. TLS/SSL functionality is provided by wolfSSL. I had to make a couple of minor changes to wolfSSL for it to work properly, and those changes are located in the devkitpro branch of my fork, hatkirby/wolfssl. The Wii program now arranges some of the information that the GBA sends it into a JSON object, which is then sent off (along with some authentication information from the config file) to the endpoint defined in the config file. The code used to maintain the network connection is from the WiiTweet project, which was licensed under the GPL. Some of the code used to send the HTTP request also comes from said project. --- Makefile.wii | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile.wii') diff --git a/Makefile.wii b/Makefile.wii index 8e2f2c8..60d072e 100644 --- a/Makefile.wii +++ b/Makefile.wii @@ -19,7 +19,7 @@ TARGET := gen3uploader_wii BUILD := build SOURCES := source DATA := data -INCLUDES := source include +INCLUDES := source include vendor/include #--------------------------------------------------------------------------------- # options for code generation @@ -33,14 +33,14 @@ LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project #--------------------------------------------------------------------------------- -LIBS := -logc +LIBS := -lfat -logc -lwolfssl -lm #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib #--------------------------------------------------------------------------------- -LIBDIRS := $(DEVKITPPC)/lib $(CURDIR) +LIBDIRS := $(DEVKITPPC)/lib $(CURDIR) $(CURDIR)/vendor #--------------------------------------------------------------------------------- # no real need to edit anything past this point unless you need to add additional -- cgit 1.4.1