Logo Search packages:      
Sourcecode: radiusd-livingston version File versions  Download package



Remote Authentication Dial In User Service

Lucent Technologies Remote Access
4464 Willow Road
Pleasanton, CA   94588

Copyright 1992-1999 Lucent Technologies Inc.  All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are

   * Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.

   * Redistributions in binary form must reproduce the above
     copyright notice, this list of conditions and the following
     disclaimer in the documentation and/or other materials provided
     with the distribution.

   * All advertising materials mentioning features or use of this
     software must display the following acknowledgement:

        This product includes software developed by Lucent
        Technologies and its contributors.

   * Neither the name of the copyright holder nor the names of its
     contributors may be used to endorse or promote products derived
     from this software without specific prior written permission.

This software is provided by the copyright holders and contributors
``as is'' and any express or implied warranties, including, but not
limited to, the implied warranties of merchantability and fitness for a
particular purpose are disclaimed. In no event shall the copyright
holder or contributors be liable for any direct, indirect, incidental,
special, exemplary, or consequential damages (including, but not
limited to, procurement of substitute goods or services; loss of use,
data, or profits; or business interruption) however caused and on any
theory of liability, whether in contract, strict liability, or tort
(including negligence or otherwise) arising in any way out of the use
of this software, even if advised of the possibility of such damage.


static char sccsid[] =
"$Id: version.c,v 1.23 1999/06/23 23:40:45 cdr Exp $ Copyright 1992-1999 Lucent Technologies Inc";

#include        <sys/types.h>
#include    <stdio.h>
#include    <syslog.h>
#include    <string.h>
#include    "radius.h"

extern char *progname;
extern int  radius_dbm;
extern int  accept_zero;

/*  If you make any changes to this software please update this version number

#define           VERSION           "Livingston RADIUS 2.1 1999/6/23"

 *    Function: version
 *    Purpose: Display the revision number for this program

      char  buffer[1024];
      void  build_version();

      fprintf(stderr, buffer);

      char buffer[1024];
      void build_version();
      void log_info();

      build_version(buffer, sizeof(buffer));
      log_info("%s", buffer);

build_version(bp, bp_len)
char * bp;
const size_t bp_len;
      extern int accept_zero;
      extern int radius_dbm;

      snprintf(bp, bp_len-48, "%s: %s ", progname, VERSION);

      /* here are all the conditional feature flags */

# if defined(ACTIVCARD)
      strcat(bp," ACTIVCARD");
# endif

# if defined(IPASS)
      strcat(bp," IPASS");
# endif

# if defined(SECURID)
      strcat(bp," SECURID");
# endif

# if defined(NDBM)
      strcat(bp," NDBM");
# endif

#if defined(NOSHADOW)
      strcat(bp," NOSHADOW"); /* system has no /usr/include/shadow.h */
#if defined(PASSCHANGE)
      strcat(bp," PASSCHANGE");     /* support deprecated radpass
                               * for changing passwords 

      /* here are all the system definitions compilation uses */
#if defined(__alpha)
      strcat(bp," __alpha");
#if defined(__FreeBSD__)
      strcat(bp," __FreeBSD__");
#if defined(__osf__)
      strcat(bp," __osf__");
#if defined(aix)
      strcat(bp," aix");
#if defined(bsdi)
      strcat(bp," bsdi");
#if defined(hpux)
      strcat(bp," hpux");
#if defined(sun)
      strcat(bp," sun");
#if defined(sys5)
      strcat(bp," sys5");
#if defined(unixware)
      strcat(bp," unixware");
#if defined(M_UNIX)
      strcat(bp," M_UNIX");
      if (accept_zero) {
            strcat(bp, " zero_accepted");
      strcat(bp, radius_dbm ? " dbm_users" : " flat_users");

Generated by  Doxygen 1.6.0   Back to index