-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TerminalReadString and TerminalReadPrompt now return NULL only if esc…
…ape is pressed, and an empty string for an empty string. Added OpenSSLAutoDetect. Initial work on selecting multiple items in menus.
- Loading branch information
Root User
committed
Apr 28, 2020
1 parent
a3906d1
commit 0644f63
Showing
8 changed files
with
248 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
CC = gcc | ||
VERSION = 4.27 | ||
CFLAGS = -g -O2 | ||
LDFLAGS= | ||
LIBS = -lssl -lcrypto -lc -lc -lc -lc -lc -lc -lc -lc | ||
FLAGS=$(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -fPIC -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -D_FILE_OFFSET_BITS=64 -DHAVE_LIBC=1 -DHAVE_PTSNAME_R=1 -DHAVE_LIBC=1 -DHAVE_CLEARENV=1 -DHAVE_LIBC=1 -DHAVE_SETRESUID=1 -DHAVE_LIBC=1 -DHAVE_GET_CURR_DIR=1 -DHAVE_LIBC=1 -DHAVE_UMOUNT2=1 -DHAVE_LIBC=1 -DHAVE_UMOUNT=1 -DHAVE_LIBC=1 -DHAVE_MKOSTEMP=1 -DHAVE_LIBC=1 -DHAVE_POLL=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DHAVE_EVP_BF_CBC=1 -DHAVE_EVP_RC2_CBC=1 -DHAVE_EVP_RC4=1 -DHAVE_EVP_DES_CBC=1 -DHAVE_EVP_DESX_CBC=1 -DHAVE_EVP_CAST5_CBC=1 -DHAVE_EVP_IDEA_CBC=1 -DHAVE_EVP_AES_128_CBC=1 -DHAVE_EVP_AES_256_CBC=1 -DHAVE_X509_CHECK_HOST=1 -DHAVE_DECL_OPENSSL_ADD_ALL_ALGORITHMS=1 -DHAVE_OPENSSL_ADD_ALL_ALGORITHMS=1 -DHAVE_DECL_SSL_SET_TLSEXT_HOST_NAME=1 -DHAVE_SSL_SET_TLSEXT_HOST_NAME=1 -DHAVE_MADVISE -DHAVE_MADVISE_NOFORK -DHAVE_MADVISE_DONTDUMP -DHAVE_MLOCK -DVERSION=\"$(VERSION)\" | ||
prefix=/usr/local | ||
OBJ=String.o Array.o List.o Socket.o UnixSocket.o Stream.o Errors.o Unicode.o Terminal.o FileSystem.o GeneralFunctions.o DataProcessing.o Pty.o Log.o Http.o Smtp.o inet.o Expect.o base64.o crc32.o md5c.o sha1.o sha2.o whirlpool.o jh_ref.o Hash.o Ssh.o Compression.o OAuth.o LibSettings.o Vars.o Time.o Markup.o SpawnPrograms.o Tokenizer.o PatternMatch.o URL.o DataParser.o ConnectionChain.o OpenSSL.o Process.o Encodings.o RawData.o SecureMem.o CommandLineParser.o SysInfo.o | ||
|
||
|
||
all: $(OBJ) | ||
$(CC) $(FLAGS) -shared -o libUseful-$(VERSION).so $(OBJ) $(LIBS) $(LDFLAGS) | ||
ar rcs libUseful-$(VERSION).a $(OBJ) | ||
-ln -s libUseful-$(VERSION).so libUseful-4.so &>/dev/null | ||
-ln -s libUseful-$(VERSION).a libUseful-4.a &>/dev/null | ||
-ln -s libUseful-$(VERSION).so libUseful.so &>/dev/null | ||
-ln -s libUseful-$(VERSION).a libUseful.a &>/dev/null | ||
|
||
|
||
String.o: String.h String.c | ||
$(CC) $(FLAGS) -c String.c | ||
|
||
Array.o: Array.h Array.c | ||
$(CC) $(FLAGS) -c Array.c | ||
|
||
List.o: List.h List.c | ||
$(CC) $(FLAGS) -c List.c | ||
|
||
Socket.o: Socket.h Socket.c | ||
$(CC) $(FLAGS) -c Socket.c | ||
|
||
Pty.o: Pty.h Pty.c | ||
$(CC) $(FLAGS) -c Pty.c | ||
|
||
Http.o: Http.h Http.c | ||
$(CC) $(FLAGS) -c Http.c | ||
|
||
Smtp.o: Smtp.h Smtp.c | ||
$(CC) $(FLAGS) -c Smtp.c | ||
|
||
Stream.o: Stream.h Stream.c | ||
$(CC) $(FLAGS) -c Stream.c | ||
|
||
Unicode.o: Unicode.c Unicode.h | ||
$(CC) $(FLAGS) -c Unicode.c | ||
|
||
Terminal.o: Terminal.h Terminal.c | ||
$(CC) $(FLAGS) -c Terminal.c | ||
|
||
Errors.o: Errors.h Errors.c | ||
$(CC) $(FLAGS) -c Errors.c | ||
|
||
|
||
Log.o: Log.h Log.c | ||
$(CC) $(FLAGS) -c Log.c | ||
|
||
UnixSocket.o: UnixSocket.h UnixSocket.c | ||
$(CC) $(FLAGS) -c UnixSocket.c | ||
|
||
PatternMatch.o: PatternMatch.h PatternMatch.c | ||
$(CC) $(FLAGS) -c PatternMatch.c | ||
|
||
FileSystem.o: FileSystem.h FileSystem.c | ||
$(CC) $(FLAGS) -c FileSystem.c | ||
|
||
Time.o: Time.h Time.c | ||
$(CC) $(FLAGS) -c Time.c | ||
|
||
Tokenizer.o: Tokenizer.h Tokenizer.c | ||
$(CC) $(FLAGS) -c Tokenizer.c | ||
|
||
Markup.o: Markup.h Markup.c | ||
$(CC) $(FLAGS) -c Markup.c | ||
|
||
URL.o: URL.h URL.c | ||
$(CC) $(FLAGS) -c URL.c | ||
|
||
DataParser.o: DataParser.h DataParser.c | ||
$(CC) $(FLAGS) -c DataParser.c | ||
|
||
inet.o: inet.h inet.c | ||
$(CC) $(FLAGS) -c inet.c | ||
|
||
Expect.o: Expect.h Expect.c | ||
$(CC) $(FLAGS) -c Expect.c | ||
|
||
SecureMem.o: SecureMem.h SecureMem.c | ||
$(CC) $(FLAGS) -c SecureMem.c | ||
|
||
GeneralFunctions.o: GeneralFunctions.h GeneralFunctions.c | ||
$(CC) $(FLAGS) -c GeneralFunctions.c | ||
|
||
DataProcessing.o: DataProcessing.h DataProcessing.c | ||
$(CC) $(FLAGS) -c DataProcessing.c | ||
|
||
Hash.o: Hash.h Hash.c | ||
$(CC) $(FLAGS) -c Hash.c | ||
|
||
Ssh.o: Ssh.h Ssh.c | ||
$(CC) $(FLAGS) -c Ssh.c | ||
|
||
Compression.o: Compression.h Compression.c | ||
$(CC) $(FLAGS) -c Compression.c | ||
|
||
ConnectionChain.o: ConnectionChain.h ConnectionChain.c | ||
$(CC) $(FLAGS) -c ConnectionChain.c | ||
|
||
base64.o: base64.c base64.h | ||
$(CC) $(FLAGS) -c base64.c | ||
|
||
crc32.o: crc32.c crc32.h | ||
$(CC) $(FLAGS) -c crc32.c | ||
|
||
md5c.o: md5c.c md5-global.h md5.h | ||
$(CC) $(FLAGS) -c md5c.c | ||
|
||
sha1.o: sha1.c sha1.h | ||
$(CC) $(FLAGS) -c sha1.c | ||
|
||
sha2.o: sha2.c sha2.h | ||
$(CC) $(FLAGS) -DSHA2_UNROLL_TRANSFORM -c sha2.c | ||
|
||
whirlpool.o: whirlpool.c whirlpool.h | ||
$(CC) $(FLAGS) -c whirlpool.c | ||
|
||
jh_ref.o: jh_ref.c jh_ref.h | ||
$(CC) $(FLAGS) -c jh_ref.c | ||
|
||
OAuth.o: OAuth.c OAuth.h | ||
$(CC) $(FLAGS) -c OAuth.c | ||
|
||
OpenSSL.o: OpenSSL.c OpenSSL.h | ||
$(CC) $(FLAGS) -c OpenSSL.c | ||
|
||
Process.o: Process.c Process.h | ||
$(CC) $(FLAGS) -c Process.c | ||
|
||
Vars.o: Vars.c Vars.h | ||
$(CC) $(FLAGS) -c Vars.c | ||
|
||
SpawnPrograms.o: SpawnPrograms.c SpawnPrograms.h | ||
$(CC) $(FLAGS) -c SpawnPrograms.c | ||
|
||
Encodings.o: Encodings.c Encodings.h | ||
$(CC) $(FLAGS) -c Encodings.c | ||
|
||
RawData.o: RawData.c RawData.h | ||
$(CC) $(FLAGS) -c RawData.c | ||
|
||
CommandLineParser.o: CommandLineParser.c CommandLineParser.h | ||
$(CC) $(FLAGS) -c CommandLineParser.c | ||
|
||
SysInfo.o: SysInfo.c SysInfo.h | ||
$(CC) $(FLAGS) -c SysInfo.c | ||
|
||
|
||
#No dependancies, must always be compiled | ||
LibSettings.o: LibSettings.h LibSettings.c | ||
$(CC) $(FLAGS) -c LibSettings.c | ||
|
||
clean: | ||
-rm -f *.o *.so *.a | ||
-rm config.log config.status | ||
-rm -r autom4te.cache config.cache | ||
|
||
install: libUseful.so | ||
-mkdir -p $(DESTDIR)$(prefix)/lib | ||
cp -P *.so *.a $(DESTDIR)$(prefix)/lib | ||
-mkdir -p $(DESTDIR)$(prefix)/include/libUseful-$(VERSION) | ||
cp *.h $(DESTDIR)$(prefix)/include/libUseful-$(VERSION) | ||
-mkdir -p $(DESTDIR)$(prefix)/include/libUseful-4 | ||
cp *.h $(DESTDIR)$(prefix)/include/libUseful-4 | ||
|
||
test: libUseful.so | ||
-echo "No tests written yet" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
CC = @CC@ | ||
VERSION = 4.26 | ||
VERSION = 4.27 | ||
CFLAGS = @CFLAGS@ @SIMD_CFLAGS@ | ||
LDFLAGS=@LDFLAGS@ | ||
LIBS = @LIBS@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters