Changeset 907 in openpam


Ignore:
Timestamp:
Jan 18, 2017, 9:39:01 AM (4 years ago)
Author:
Dag-Erling Smørgrav
Message:

Move OATH development to a branch. OATH will soon disappear entirely
from this repository as Cryb takes over.

Files:
13 deleted
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/oath/configure.ac

    r884 r907  
    33AC_PREREQ([2.62])
    44AC_REVISION([$Id$])
    5 AC_INIT([OpenPAM], [trunk], [des@des.no], [openpam], [http://www.openpam.org/])
     5AC_INIT([OpenPAM], [oath], [des@des.no], [openpam], [http://www.openpam.org/])
    66AC_CONFIG_SRCDIR([lib/libpam/pam_start.c])
    77AC_CONFIG_MACRO_DIR([m4])
  • trunk/HISTORY

    r811 r907  
    1 OpenPAM ??????????                                              2014-??-??
    2 
    3  - FEATURE: Add a pam_oath module that implements RFC 4226 (HOTP) and
    4    RFC 6238 (TOTP).
    5 ============================================================================
    61OpenPAM Ourouparia                                              2014-09-12
    72
  • trunk/LICENSE

    r902 r907  
    22Copyright (c) 2002-2003 Networks Associates Technology, Inc.
    33Copyright (c) 2004-2017 Dag-Erling Smørgrav
    4 Copyright (c) 2012-2016 The University of Oslo
    54All rights reserved.
    65
  • trunk/RELNOTES

    r806 r907  
    1818   modules.
    1919
    20  - A library which implements the OATH one-time password algorithms,
    21    with complete API documentation.
    22 
    23  - A PAM module which implements OATH-based authentication.
    24 
    2520 - Unit tests for limited portions of the libraries.
    2621
  • trunk/TODO

    r804 r907  
    11Before the next release:
    2 
    3  - Add oath_alloc_secure() which allocates memory using mmap() +
    4    mlock() and oath_free_secure() which wipes and frees it.
    5 
    6  - Move key management (locate keyfile, load various key formats,
    7    write back after use) into liboath.
    8 
    9  - Implement support for PSKC (RFC 6030) keyfiles.
    10 
    11  - Implement OATH OCRA (RFC 6287) authentication.
    12 
    13  - Determine and document level of compliance with the OATH HOTP /
    14    TOTP / OCRA validation server profiles.
    152
    163 - Rewrite openpam_ttyconv(3).
     
    218   incorrect, all FreeBSD modules are broken)
    229
    23  - Finish pam_oath(8) and oathkey(1).
    24 
    2510 - Add loop detection to openpam_load_chain().
    2611
  • trunk/autogen.des

    r852 r907  
    2525
    2626./configure \
    27         --with-oath \
    2827        --with-doc \
    2928        --with-pam-unix \
  • trunk/bin/Makefile.am

    r780 r907  
    22
    33SUBDIRS = openpam_dump_policy
    4 
    5 if WITH_OATH
    6 SUBDIRS += oathkey
    7 endif
    84
    95if WITH_PAMTEST
  • trunk/configure.ac

    r884 r907  
    6868AM_CONDITIONAL([WITH_PAM_UNIX], [test x"$with_pam_unix" = x"yes"])
    6969
    70 AC_ARG_WITH([oath],
    71     AC_HELP_STRING([--without-oath], [do not build OATH library, module and utility]),
    72     [],
    73     [with_oath=yes])
    74 AM_CONDITIONAL([WITH_OATH], [test x"$with_oath" = x"yes"])
    75 
    7670AC_ARG_WITH(pamtest,
    7771    AC_HELP_STRING([--with-pamtest], [build test application]),
     
    9185    [with_system_libpam=no])
    9286AM_CONDITIONAL([WITH_SYSTEM_LIBPAM], [test x"$with_system_libpam" = x"yes"])
    93 
    94 AC_ARG_WITH(system-liboath,
    95     AC_HELP_STRING([--with-system-liboath], [use system liboath]),
    96     [],
    97     [with_system_liboath=no])
    98 AM_CONDITIONAL([WITH_SYSTEM_LIBOATH], [test x"$with_system_liboath" = x"yes"])
    9987
    10088AC_CHECK_HEADERS([crypt.h])
     
    134122AC_SUBST(SYSTEM_LIBPAM)
    135123
    136 saved_LIBS="${LIBS}"
    137 LIBS=""
    138 AC_CHECK_LIB([oath], [oath_key_alloc])
    139 SYSTEM_LIBOATH="${LIBS}"
    140 LIBS="${saved_LIBS}"
    141 AC_SUBST(SYSTEM_LIBOATH)
    142 
    143124AC_ARG_ENABLE([developer-warnings],
    144125    AS_HELP_STRING([--enable-developer-warnings], [enable strict warnings (default is NO)]),
     
    154135    Makefile
    155136    bin/Makefile
    156     bin/oathkey/Makefile
    157137    bin/openpam_dump_policy/Makefile
    158138    bin/pamtest/Makefile
     
    163143    include/security/Makefile
    164144    lib/Makefile
    165     lib/liboath/Makefile
    166145    lib/libpam/Makefile
    167146    modules/Makefile
     
    170149    modules/pam_return/Makefile
    171150    modules/pam_unix/Makefile
    172     modules/pam_oath/Makefile
    173151    t/Makefile
    174152])
  • trunk/doc/man

    • Property svn:ignore
      •  

        old new  
        11Makefile
        22Makefile.in
        3 oath.3
        4 oath_*.3
        53openpam.3
        64openpam_*.3
  • trunk/doc/man/Makefile.am

    r860 r907  
    6262        $(NULL)
    6363
    64 if WITH_OATH
    65 if !WITH_SYSTEM_LIBOATH
    66 OATH_MAN = \
    67         oath_key_alloc.3 \
    68         oath_key_create.3 \
    69         oath_key_dummy.3 \
    70         oath_key_free.3 \
    71         oath_key_from_file.3 \
    72         oath_key_from_uri.3 \
    73         oath_mode.3 \
    74         oath_uri_decode.3 \
    75         $(NULL)
    76 endif
    77 endif
    78 
    79 EXTRA_DIST = oath.man openpam.man pam.man
     64EXTRA_DIST = openpam.man pam.man
    8065
    8166if !WITH_SYSTEM_LIBPAM
     
    8469endif
    8570
    86 if WITH_OATH
    87 if !WITH_SYSTEM_LIBOATH
    88 OATHCMAN = $(OATH_MAN)
    89 OATHXMAN = oath.3
    90 endif
    91 endif
    92 
    93 ALLCMAN = $(PAMCMAN) $(OATHCMAN)
    94 GENMAN = $(ALLCMAN) $(PAMXMAN) $(OATHXMAN)
     71ALLCMAN = $(PAMCMAN)
     72GENMAN = $(ALLCMAN) $(PAMXMAN)
    9573
    9674dist_man3_MANS = $(GENMAN) pam_conv.3
     
    10381
    10482LIBPAMSRCDIR = $(top_srcdir)/lib/libpam
    105 if WITH_OATH
    106 LIBOATHSRCDIR = $(top_srcdir)/lib/liboath
    107 endif
    10883
    109 VPATH = $(LIBPAMSRCDIR) $(LIBOATHSRCDIR) $(srcdir)
     84VPATH = $(LIBPAMSRCDIR) $(srcdir)
    11085
    11186SUFFIXES = .3
     
    11388.c.3: $(GENDOC)
    11489        perl -w $(GENDOC) $< || rm $@
    115 
    116 if WITH_OATH
    117 if !WITH_SYSTEM_LIBOATH
    118 oath.3: $(OATH_MAN) $(GENDOC) $(srcdir)/oath.man
    119         perl -w $(GENDOC) -a $(OATH_MAN) <$(srcdir)/oath.man || rm $@
    120 endif
    121 endif
    12290
    12391openpam.3: $(OPENPAM_MAN) $(GENDOC) $(srcdir)/openpam.man
  • trunk/include/security/Makefile.am

    r758 r907  
    1111        pam_modules.h \
    1212        pam_types.h
    13 
    14 if WITH_OATH
    15 security_HEADERS += \
    16         oath.h \
    17         oath_constants.h \
    18         oath_rfc3986.h \
    19         oath_rfc4648.h \
    20         oath_types.h
    21 endif
  • trunk/lib/Makefile.am

    r834 r907  
    66SUBDIRS += libpam
    77endif
    8 
    9 if WITH_OATH
    10 if !WITH_SYSTEM_LIBOATH
    11 SUBDIRS += liboath
    12 endif
    13 endif
  • trunk/misc/gendoc.pl

    r890 r907  
    348348        $FUNCTIONS{$func}->{openpam} = 1;
    349349    }
    350     if ($func =~ m/^oath/) {
    351         $FUNCTIONS{$func}->{oath} = 1;
    352     }
    353350    expand_errors($FUNCTIONS{$func});
    354351    return $FUNCTIONS{$func};
     
    455452.Lb libpam
    456453";
    457     } elsif ($func =~ m/^oath_/) {
    458         $mdoc .= ".Sh LIBRARY
    459 .Lb liboath
    460 ";
    461454    }
    462455    $mdoc .= ".Sh SYNOPSIS
    463456.In sys/types.h
    464457";
    465     if ($$func{name} =~ m/^oath/) {
    466         $mdoc .= ".In stdint.h\n";
    467     }
    468458    if ($$func{args} =~ m/\bFILE \*\b/) {
    469459        $mdoc .= ".In stdio.h\n";
    470     }
    471     if ($$func{name} =~ m/^oath/) {
    472         $mdoc .= ".In security/oath.h
    473 ";
    474460    }
    475461    if ($$func{name} =~ m/^(?:open)?pam/) {
     
    542528function is an OpenPAM extension.
    543529";
    544     } elsif ($$func{oath}) {
    545         # nothing yet
    546530    } else {
    547531        $mdoc .= ".Rs
     
    574558        or die("$fn: open(): $!\n");
    575559    while (<FILE>) {
    576         if (m/^\.Nm ((?:(?:open)?pam|oath)_.*?)\s*$/) {
     560        if (m/^\.Nm ((?:(?:open)?pam)_.*?)\s*$/) {
    577561            $func{Nm} = $func{Nm} || $1;
    578562        } elsif (m/^\.Ft (\S.*?)\s*$/) {
     
    622606    if ($page eq 'pam') {
    623607        print FILE ".In security/pam_appl.h\n";
    624     } elsif ($page eq 'oath') {
    625         print FILE ".In security/oath.h\n";
    626608    } else {
    627609        print FILE ".In security/openpam.h\n";
     
    658640    }
    659641    print FILE genxref(\%xref);
    660     if ($page eq 'oath') {
    661         print FILE ".Sh AUTHORS
    662 The OATH library and this manual page were $AUTHORS{UIO}
    663 ";
    664     } else {
    665         print FILE ".Sh STANDARDS
     642    print FILE ".Sh STANDARDS
    666643.Rs
    667644.%T \"X/Open Single Sign-On Service (XSSO) - Pluggable Authentication Modules\"
     
    669646.Re
    670647";
    671         print FILE ".Sh AUTHORS
     648    print FILE ".Sh AUTHORS
    672649The OpenPAM library and this manual page were $AUTHORS{THINKSEC}
    673650";
    674     }
    675651    close(FILE);
    676652}
     
    686662
    687663    usage()
    688         unless (@ARGV && getopts("aop", \%opts));
     664        unless (@ARGV && getopts("op", \%opts));
    689665    $TODAY = strftime("%B %e, %Y", localtime(time()));
    690666    $TODAY =~ s,\s+, ,g;
    691     if ($opts{a} || $opts{o} || $opts{p}) {
     667    if ($opts{o} || $opts{p}) {
    692668        foreach my $fn (@ARGV) {
    693669            readproto($fn);
    694670        }
    695         gensummary('oath')
    696             if ($opts{a});
    697671        gensummary('openpam')
    698672            if ($opts{o});
  • trunk/modules/Makefile.am

    r873 r907  
    66SUBDIRS += pam_unix
    77endif
    8 
    9 if WITH_OATH
    10 SUBDIRS += pam_oath
    11 endif
  • trunk/t

    • Property svn:ignore
      •  

        old new  
        77t_openpam_readlinev
        88t_openpam_readword
        9 t_rfc3986
        10 t_rfc4648
        119*.log
        1210*.trs
  • trunk/t/Makefile.am

    r874 r907  
    1414TESTS += t_openpam_readword
    1515TESTS += t_openpam_readlinev
    16 if WITH_OATH
    17 TESTS += t_rfc3986 t_rfc4648
    18 endif
    1916check_PROGRAMS = $(TESTS)
    2017
     
    3027LDADD += $(top_builddir)/lib/libpam/libpam.la
    3128endif
    32 if WITH_OATH
    33 if WITH_SYSTEM_LIBOATH
    34 LDADD += $(SYSTEM_LIBOATH)
    35 else
    36 LDADD += $(top_builddir)/lib/liboath/liboath.la
    37 endif
    38 endif
Note: See TracChangeset for help on using the changeset viewer.