Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/crypt.h
          +++ new/usr/src/head/crypt.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
       22 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  /*      Copyright (c) 1988 AT&T */
  27   29  /*        All Rights Reserved   */
  28   30  
  29   31  
  30   32  #ifndef _CRYPT_H
  31   33  #define _CRYPT_H
  32   34  
  33      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.1   */
  34      -
  35   35  #include <pwd.h>
  36   36  
  37   37  #ifdef  __cplusplus
  38   38  extern "C" {
  39   39  #endif
  40   40  
  41   41  /* Password and file encryption functions */
  42   42  
  43   43  #define CRYPT_MAXCIPHERTEXTLEN  512
  44   44  
  45      -#if defined(__STDC__)
  46   45  extern char *crypt(const char *, const char *);
  47   46  extern char *crypt_gensalt(const char *, const struct passwd *);
  48   47  extern char *crypt_genhash_impl(char *, size_t, const char *,
  49   48      const char *, const char **);
  50   49  extern char *crypt_gensalt_impl(char *, size_t, const char *,
  51   50      const struct passwd *, const char **);
  52   51  extern int crypt_close(int *);
  53   52  extern char *des_crypt(const char *, const char *);
  54   53  extern void des_encrypt(char *, int);
  55   54  extern void des_setkey(const char *);
  56   55  extern void encrypt(char *, int);
  57   56  extern int run_crypt(long, char *, unsigned, int *);
  58   57  extern int run_setkey(int *, const char *);
  59   58  extern void setkey(const char *);
  60      -#else
  61      -extern char *crypt();
  62      -extern char *crypt_gensalt();
  63      -extern char *crypt_genhash_impl();
  64      -extern char *crytp_gensalt_impl();
  65      -extern int crypt_close();
  66      -extern char *des_crypt();
  67      -extern void des_encrypt();
  68      -extern void des_setkey();
  69      -extern void encrypt();
  70      -extern int run_crypt();
  71      -extern int run_setkey();
  72      -extern void setkey();
  73      -#endif
  74   59  
  75   60  #ifdef  __cplusplus
  76   61  }
  77   62  #endif
  78   63  
  79   64  #endif  /* _CRYPT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX