Commit 53e22bde authored by Olaf Bergmann's avatar Olaf Bergmann

Initial autotools boilerplate

parents
libdcaf authors
Olaf Bergmann, TZI Universität Bremen <bergmann@tzi.org>
Stefanie Gerdes, TZI Universität Bremen <gerdes@tzi.org>
dcaf is published as open-source software without any warranty of any kind.
Use is permitted under the terms of the MIT license. The respective
license file is shipped as LICENSE.
The MIT License
Copyright (c) 2016 Olaf Bergmann <bergmann@tzi.org>
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.
\ No newline at end of file
# Makefile.am for dcaf
#
# Copyright (C) 2016 Olaf Bergmann <bergmann@tzi.org>
#
# This file is part of the library dcaf. Please see README and
# COPYING for terms of use.
## Place generated object files (.o) into the same directory as their source
## files, in order to avoid collisions when non-recursive make is used.
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
## Additional files for the distribution archive
EXTRA_DIST = $(pkgconfig_DATA).in
AM_CFLAGS =
SUBDIRS = $(subdirs) .
lib_LIBRARIES = libdcaf.a
libdcaf_a_CFLAGS = -I @top_builddir@/include/dcaf/ $(WARNING_CFLAGS) -std=c99
## Source files comprising libdcaf.
libdcaf_a_SOURCES = src/dcaf.c
## Public header files and their installation location.
libdcaf_includedir = $(includedir)/dcaf/
libdcaf_include_HEADERS = \
include/dcaf/dcaf.h
## Include autogen.sh in distribution but do not install it.
dist_noinst_SCRIPTS = autogen.sh
dcaf: Authenticated Authorization for the Internet of Things
Copyright (c) 2015-2016 by Olaf Bergmann <bergmann@tzi.org>
2015-2016 by Stefanie Gerdes <gerdes@tzi.org>
ABOUT DCAF
==========
The Delegated CoAP Authentication and Authorization Framework (DCAF)
defines an architecture and a protocol for delegating client
authentication and authorization in a constrained environment for
establishing a secure communication context between
resource-constrained nodes, utilizing Datagram Transport Layer
Security (DTLS) or CBOR message syntax (COSE).
The protocol transfers authorization information and shared secrets
for symmetric cryptography between entities in a constrained
network. A resource-constrained node can use the protocol to delegate
authentication of communication peers and management of authorization
information to a trusted host with less severe limitations regarding
processing power and memory.
More information on DCAF is available at
https://tools.ietf.org/html/draft-gerdes-ace-dcaf-authorize
PACKAGE CONTENTS
================
This library contains a protocol parser and basic handling functions
for integration with libcoap.
LICENSE INFORMATION
===================
This library is published as open-source software without any warranty
of any kind. Use is permitted under the terms of the MIT license.
Please refer to LICENSE for further details.
#! /bin/sh -e
srcdir=`dirname "$0"`
autoreconf --force --install --verbose "$srcdir"
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
#
# Copyright (c) 2016 Olaf Bergmann (TZI)
AC_PREREQ([2.64])
AC_INIT([dcaf], [0.1.0])
AM_INIT_AUTOMAKE([1.10 -Wall no-define no-dist-gzip dist-bzip2])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_RANLIB
AM_PROG_AR
# Adding some default warning options for code QS
# see https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
# and http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
WARNING_CFLAGS="\
-pedantic \
-Wall \
-Wextra \
-Wformat-security \
-Winline \
-Wmissing-declarations \
-Wmissing-prototypes \
-Wnested-externs \
-Wpointer-arith \
-Wshadow \
-Wstrict-prototypes \
-Wswitch-default \
-Wswitch-enum \
-Wunused \
-Wunused-result \
"
AC_SUBST([WARNING_CFLAGS])
AC_PATH_PROG(DOXYGEN, doxygen, [:])
AC_ARG_WITH(debug,
[AS_HELP_STRING([--without-debug],[disable all debug output and assertions])],
[CPPFLAGS="${CPPFLAGS} -DNDEBUG"
NDEBUG=1],
[])
# Checks for header files.
AC_CHECK_HEADERS([assert.h inttypes.h stddef.h stdint.h stdlib.h string.h strings.h unistd.h])
AC_CHECK_HEADERS([sys/time.h time.h])
AC_CHECK_HEADERS([sys/types.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])
AC_CONFIG_HEADERS([dcaf_config.h])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
/*
* dcaf.h -- main header file for libdcaf
*
* Copyright (C) 2015-2016 Olaf Bergmann <bergmann@tzi.org>
* 2015-2016 Stefanie Gerdes <gerdes@tzi.org>
*
* This file is part of the DCAF library libdcaf. Please see README
* for terms of use.
*/
#ifndef _DCAF_H_
#define _DCAF_H_ 1
#endif /* _DCAF_H_ */
/*
* dcaf.c -- libdcaf core
*
* Copyright (C) 2015-2016 Olaf Bergmann <bergmann@tzi.org>
* 2015-2016 Stefanie Gerdes <gerdes@tzi.org>
*
* This file is part of the DCAF library libdcaf. Please see README
* for terms of use.
*/
#include "dcaf.h"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment