Codebase list librelp / d727c8a
New upstream version 1.2.14 Michael Biebl 6 years ago
10 changed file(s) with 42 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
0 ----------------------------------------------------------------------
1 Version 1.2.14 - 2017-05-29
2 - API extension: add relpSrvSetMaxDataSize()
3 Thanks to Nathan Brown for the patch.
04 ----------------------------------------------------------------------
15 Version 1.2.13 - 2017-02-20
26 - make build under BSD
191191 DIST_SUBDIRS = $(SUBDIRS)
192192 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
193193 $(srcdir)/relp.pc.in AUTHORS COPYING ChangeLog INSTALL NEWS \
194 README compile config.guess config.sub depcomp install-sh \
195 ltmain.sh missing
194 README compile config.guess config.sub install-sh ltmain.sh \
195 missing
196196 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
197197 distdir = $(PACKAGE)-$(VERSION)
198198 top_distdir = $(distdir)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for librelp 1.2.13.
2 # Generated by GNU Autoconf 2.69 for librelp 1.2.14.
33 #
44 # Report bugs to <rgerhards@adiscon.com>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='librelp'
591591 PACKAGE_TARNAME='librelp'
592 PACKAGE_VERSION='1.2.13'
593 PACKAGE_STRING='librelp 1.2.13'
592 PACKAGE_VERSION='1.2.14'
593 PACKAGE_STRING='librelp 1.2.14'
594594 PACKAGE_BUGREPORT='rgerhards@adiscon.com'
595595 PACKAGE_URL=''
596596
13361336 # Omit some internal or obsolete options to make the list less imposing.
13371337 # This message is too long to be a string in the A/UX 3.1 sh.
13381338 cat <<_ACEOF
1339 \`configure' configures librelp 1.2.13 to adapt to many kinds of systems.
1339 \`configure' configures librelp 1.2.14 to adapt to many kinds of systems.
13401340
13411341 Usage: $0 [OPTION]... [VAR=VALUE]...
13421342
14071407
14081408 if test -n "$ac_init_help"; then
14091409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of librelp 1.2.13:";;
1410 short | recursive ) echo "Configuration of librelp 1.2.14:";;
14111411 esac
14121412 cat <<\_ACEOF
14131413
15271527 test -n "$ac_init_help" && exit $ac_status
15281528 if $ac_init_version; then
15291529 cat <<\_ACEOF
1530 librelp configure 1.2.13
1530 librelp configure 1.2.14
15311531 generated by GNU Autoconf 2.69
15321532
15331533 Copyright (C) 2012 Free Software Foundation, Inc.
20532053 This file contains any messages produced by compilers while
20542054 running configure, to aid debugging if configure makes a mistake.
20552055
2056 It was created by librelp $as_me 1.2.13, which was
2056 It was created by librelp $as_me 1.2.14, which was
20572057 generated by GNU Autoconf 2.69. Invocation command line was
20582058
20592059 $ $0 $@
29162916
29172917 # Define the identity of the package.
29182918 PACKAGE='librelp'
2919 VERSION='1.2.13'
2919 VERSION='1.2.14'
29202920
29212921
29222922 cat >>confdefs.h <<_ACEOF
30313031
30323032 # Define the identity of the package.
30333033 PACKAGE='librelp'
3034 VERSION='1.2.13'
3034 VERSION='1.2.14'
30353035
30363036
30373037 cat >>confdefs.h <<_ACEOF
1378413784 # report actual input values of CONFIG_FILES etc. instead of their
1378513785 # values after options handling.
1378613786 ac_log="
13787 This file was extended by librelp $as_me 1.2.13, which was
13787 This file was extended by librelp $as_me 1.2.14, which was
1378813788 generated by GNU Autoconf 2.69. Invocation command line was
1378913789
1379013790 CONFIG_FILES = $CONFIG_FILES
1385013850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1385113851 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1385213852 ac_cs_version="\\
13853 librelp config.status 1.2.13
13853 librelp config.status 1.2.14
1385413854 configured by $0, generated by GNU Autoconf 2.69,
1385513855 with options \\"\$ac_cs_config\\"
1385613856
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ(2.61)
4 AC_INIT([librelp], [1.2.13], [rgerhards@adiscon.com])
4 AC_INIT([librelp], [1.2.14], [rgerhards@adiscon.com])
55 AM_INIT_AUTOMAKE
66 AM_INIT_AUTOMAKE
77 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
3434 cmdif.h
3535 librelp_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(GNUTLS_CFLAGS)
3636 librelp_la_LIBADD = $(rt_libs) $(GNUTLS_LIBS)
37 librelp_la_LDFLAGS = -version-info 2:0:2
37 # info on version-info:
38 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
39 librelp_la_LDFLAGS = -version-info 3:0:3
3840
3941 include_HEADERS = librelp.h
369369
370370 librelp_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(GNUTLS_CFLAGS)
371371 librelp_la_LIBADD = $(rt_libs) $(GNUTLS_LIBS)
372 librelp_la_LDFLAGS = -version-info 2:0:2
372 # info on version-info:
373 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
374 librelp_la_LDFLAGS = -version-info 3:0:3
373375 include_HEADERS = librelp.h
374376 all: all-am
375377
206206 relpRetVal relpSrvSetPrivKey(relpSrv_t *pThis, char *cert);
207207 relpRetVal relpSrvSetAuthMode(relpSrv_t *pThis, char *mode);
208208 relpRetVal relpSrvAddPermittedPeer(relpSrv_t *pThis, char *peer);
209 relpRetVal relpSrvSetMaxDataSize(relpSrv_t *pThis, size_t maxSize);
209210
210211 /* exposed relp client functions */
211212 relpRetVal relpCltConnect(relpClt_t *pThis, int protFamily, unsigned char *port, unsigned char *host);
196196
197197 CHKRet(relpSessConstruct(&pThis, pSrv->pEngine, RELP_SRV_CONN, pSrv));
198198 CHKRet(relpTcpAcceptConnReq(&pThis->pTcp, sock, pSrv));
199 CHKRet(relpSessSetMaxDataSize(pThis, pSrv->maxDataSize));
199200
200201 *ppThis = pThis;
201202
989990 LEAVE_RELPFUNC;
990991 }
991992
993 relpRetVal relpSessSetMaxDataSize(relpSess_t *pThis, size_t maxSize) {
994 ENTER_RELPFUNC;
995 RELPOBJ_assert(pThis, Sess);
996 pThis->maxDataSize = maxSize;
997 LEAVE_RELPFUNC;
998 }
999
9921000 relpRetVal
9931001 relpSessSetAuthMode(relpSess_t *pThis, relpAuthMode_t authmode)
9941002 {
7474 relpTcp_t *pTcp; /**< our sockt to the remote peer */
7575 struct relpFrame_s *pCurrRcvFrame; /**< the current receive frame (a buffer) */
7676 relpTxnr_t txnr; /**< next txnr expected when receiving or to be used when sending */
77 size_t maxDataSize; /**< maximum size of a DATA element (TODO: set after handshake on connect) */
77 size_t maxDataSize; /**< maximum size of a DATA element */
7878 pthread_mutex_t mutSend; /**< mutex for send operation (make sure txnr is correct) */
7979 relpSrv_t *pSrv; /**< a pointer to our server object, if NULL, we belong to a client */
8080 relpClt_t *pClt; /**< ptr to our client; only valid if pSrv == NULL */
160160 relpRetVal relpSessSetUsrPtr(relpSess_t *pThis, void *pUsr);
161161 relpRetVal relpSessSendSyslog(relpSess_t *pThis, unsigned char *pMsg, size_t lenMsg);
162162 relpRetVal relpSessSetEnableCmd(relpSess_t *pThis, unsigned char *pszCmd, relpCmdEnaState_t stateCmd);
163 relpRetVal relpSessSetMaxDataSize(relpSess_t *pThis, size_t maxSize);
163164
164165 #endif /* #ifndef RELPSESS_H_INCLUDED */
6868 pThis->ownCertFile = NULL;
6969 pThis->privKey = NULL;
7070 pThis->permittedPeers.nmemb = 0;
71 pThis->maxDataSize = RELP_DFLT_MAX_DATA_SIZE;
7172
7273 *ppThis = pThis;
7374
155156 LEAVE_RELPFUNC;
156157 }
157158
159 relpRetVal relpSrvSetMaxDataSize(relpSrv_t *pThis, size_t maxSize) {
160 ENTER_RELPFUNC;
161 RELPOBJ_assert(pThis, Srv);
162 pThis->maxDataSize = maxSize;
163 LEAVE_RELPFUNC;
164 }
158165
159166 /* set the listen port inside the relp server. If NULL is provided, the default port
160167 * is used. The provided string is always copied, it is the caller's duty to