Skip to content

Commit

Permalink
commit for github
Browse files Browse the repository at this point in the history
  • Loading branch information
muquit committed May 28, 2015
0 parents commit 6189cb5
Show file tree
Hide file tree
Showing 33 changed files with 18,981 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Changelog.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
= ChangeLog file for RNCryptor-C

= v1.01
* Released May-27-2015
22 changes: 22 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 Muhammad Muquit (http://www.muquit.com/)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

91 changes: 91 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
##
# Makefile automatically generated by genmake 1.0, Feb-11-2014
# genmake 1.0 by [email protected], http://www.muquit.com/
##
srcdir = .

top_srcdir = .
CC= gcc
DEFS= -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MEMORY_H=1 -DHAVE_UNISTD_H=1 -DHAVE_CTYPE_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_STDLIB_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_SYSLIMITS_H=1 -DHAVE_RAND_R=1 -DHAVE_SOCKET=1 -DHAVE_GETADDRINFO=1 -DSIZEOF_VOID_P=8 -DHAVE_OPENSSL=1 -DUNIX
AR= /usr/bin/ar
ARFLAGS = cruv
RANLIB= ranlib
LIBNAME= librncryptorc.a
PROGNAME=
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_EXEC = @INSTALL_EXEC@

DESTDIR =
prefix = /usr/local
exec_prefix = ${prefix}
datarootdir = ${prefix}/share
datadir = ${datarootdir}
bindir = ${exec_prefix}/bin
includedir = ${prefix}/include
libdir = ${exec_prefix}/lib
mandir = ${datarootdir}/man
man1dir = $(mandir)/man1
BINDIR = $(DESTDIR)$(bindir)
MAN1DIR = $(DESTDIR)$(man1dir)

MANPAGE=

OPENSSL_DIR=/usr/local/ssl/
OPENSSL_INC=-I/usr/local/ssl//include
OPENSSL_LIBS=-L/usr/local/ssl//lib -lssl -lcrypto -ldl

STRIP=/usr/bin/strip

INCLUDES= -I. $(OPENSSL_INC)

DEFINES= $(INCLUDES) $(DEFS) -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 \
-DHAVE_MATH_H=1

CFLAGS= -g -O2 -Wall $(DEFINES)
LIBS=$(LIBNAME) $(OPENSSL_LIBS)

SRCS = rncryptor_c.c mutils.c
OBJS = rncryptor_c.o mutils.o

.c.o:
rm -f $@
$(CC) $(CFLAGS) -c $*.c

all: $(LIBNAME)

$(LIBNAME) : $(OBJS)
rm -f $@
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $@

examples: $(LIBNAME)
$(CC) $(CFLAGS) rn_decrypt.c -o rn_decrypt $(LIBS)
$(CC) $(CFLAGS) rn_encrypt.c -o rn_encrypt $(LIBS)
$(CC) $(CFLAGS) rn_encrypt_with_key.c -o rn_encrypt_with_key $(LIBS)
$(CC) $(CFLAGS) rn_decrypt_with_key.c -o rn_decrypt_with_key $(LIBS)

test:
+ruby tests/test.rb

install: installdirs install-all

install-man:
$(INSTALL_DATA) $(MANPAGE) $(MAN1DIR)

installdirs:
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

install-all:
$(INSTALL_DATA) rncryptor_c.h ${DESTDIR}${includedir}
$(INSTALL_DATA) $(LIBNAME) ${DESTDIR}${libdir}
$(INSTALL_PROGRAM) rn_decrypt ${DESTDIR}${bindir}
$(INSTALL_PROGRAM) rn_decrypt_with_key ${DESTDIR}${bindir}
$(INSTALL_PROGRAM) rn_encrypt ${DESTDIR}${bindir}
$(INSTALL_PROGRAM) rn_encrypt_with_key ${DESTDIR}${bindir}

clean:
rm -f $(OBJS) *.o $(LIBNAME) rn_encrypt rn_decrypt rn_encrypt_with_key rn_decrypt_with_key
91 changes: 91 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
##
# Makefile automatically generated by genmake 1.0, Feb-11-2014
# genmake 1.0 by [email protected], http://www.muquit.com/
##
srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
CC= @CC@
DEFS= @DEFS@ -DUNIX
AR= @AR@
ARFLAGS = @ARFLAGS@
RANLIB= @RANLIB@
LIBNAME= librncryptorc.@A@
PROGNAME=
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_EXEC = @INSTALL_EXEC@

DESTDIR =
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
datadir = @datadir@
bindir = @bindir@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
man1dir = $(mandir)/man1
BINDIR = $(DESTDIR)$(bindir)
MAN1DIR = $(DESTDIR)$(man1dir)

MANPAGE=

OPENSSL_DIR=@OPENSSL_DIR@
OPENSSL_INC=@OPENSSL_INC@
OPENSSL_LIBS=@OPENSSL_LIBS@ @DL_LIB@

STRIP=@STRIP@

INCLUDES= -I. $(OPENSSL_INC)

DEFINES= $(INCLUDES) $(DEFS) -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 \
-DHAVE_MATH_H=1

CFLAGS= @CFLAGS@ $(DEFINES)
LIBS=$(LIBNAME) $(OPENSSL_LIBS)

SRCS = rncryptor_c.c mutils.c
OBJS = rncryptor_c.o mutils.o

.c.o:
rm -f $@
$(CC) $(CFLAGS) -c $*.c

all: $(LIBNAME)

$(LIBNAME) : $(OBJS)
rm -f $@
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $@

examples: $(LIBNAME)
$(CC) $(CFLAGS) rn_decrypt.c -o rn_decrypt $(LIBS)
$(CC) $(CFLAGS) rn_encrypt.c -o rn_encrypt $(LIBS)
$(CC) $(CFLAGS) rn_encrypt_with_key.c -o rn_encrypt_with_key $(LIBS)
$(CC) $(CFLAGS) rn_decrypt_with_key.c -o rn_decrypt_with_key $(LIBS)

test:
+ruby tests/test.rb

install: installdirs install-all

install-man:
$(INSTALL_DATA) $(MANPAGE) $(MAN1DIR)

installdirs:
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

install-all:
$(INSTALL_DATA) rncryptor_c.h ${DESTDIR}${includedir}
$(INSTALL_DATA) $(LIBNAME) ${DESTDIR}${libdir}
$(INSTALL_PROGRAM) rn_decrypt ${DESTDIR}${bindir}
$(INSTALL_PROGRAM) rn_decrypt_with_key ${DESTDIR}${bindir}
$(INSTALL_PROGRAM) rn_encrypt ${DESTDIR}${bindir}
$(INSTALL_PROGRAM) rn_encrypt_with_key ${DESTDIR}${bindir}

clean:
rm -f $(OBJS) *.o $(LIBNAME) rn_encrypt rn_decrypt rn_encrypt_with_key rn_decrypt_with_key
35 changes: 35 additions & 0 deletions Makefile.nmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#--------------------------------------------
# Makefile for MS Visual C++
# [email protected]
# updated for MS Visual Studio 10.0 Feb-27-2012
#--------------------------------------------

OPENSSL_DIR=c:/openssl
OPENSSL_LIBS=$(OPENSSL_DIR)/lib/libeay32.lib $(OPENSSL_DIR)/lib/ssleay32.lib
OPENSSL_INC=/I$(OPENSSL_DIR)/include

CFLAGS= /DWINNT /DWIN32 /DHAVE_MALLOC_H /DHAVE_STRING_H /DHAVE_FCNTL_H /DHAVE_CTYPE_H /DHAVE_STDLIB_H /DHAVE_OPENSSL /I. $(OPENSSL_INC)
CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
LIBFLAGS=/nologo
WINDOWS_LIBS=ws2_32.lib shell32.lib advapi32.lib user32.lib gdi32.lib winmm.lib comdlg32.lib comctl32.lib
LIBRARY=rncryptorc.lib
LIBS=$(LIBRARY) $(OPENSSL_LIBS) $(WINDOWS_LIBS)
DEFINES= $(INCLUDES) $(DEFS)


SRCS = rncryptor_c.c mutils.c
OBJS = rncryptor_c.obj mutils.obj

all: $(LIBRARY)

$(LIBRARY): $(OBJS)
lib $(LIBFLAGS) $(OBJS) /out:$(LIBRARY)

EXAMPLES:
$(CC) $(CFLAGS) rn_encrypt.c $(LIBS) /Fern_encrypt.exe
$(CC) $(CFLAGS) rn_decrypt.c $(LIBS) /Fern_decrypt.exe
$(CC) $(CFLAGS) rn_encrypt_with_key.c $(LIBS) /Fern_encrypt_with_key.exe
$(CC) $(CFLAGS) rn_decrypt_with_key.c $(LIBS) /Fern_decrypt_with_key.exe

clean:
del $(OBJS) $(LIBRARY) *.bak
Loading

0 comments on commit 6189cb5

Please sign in to comment.