(root)/
libxcrypt-4.4.36/
lib/
crypt-obsolete.h
       1  /* Prototypes for obsolete functions in libcrypt.
       2  
       3     Copyright (C) 1991-2017 Free Software Foundation, Inc.
       4  
       5     This library is free software; you can redistribute it and/or
       6     modify it under the terms of the GNU Lesser General Public License
       7     as published by the Free Software Foundation; either version 2.1 of
       8     the License, or (at your option) any later version.
       9  
      10     This library is distributed in the hope that it will be useful,
      11     but WITHOUT ANY WARRANTY; without even the implied warranty of
      12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      13     GNU Lesser General Public License for more details.
      14  
      15     You should have received a copy of the GNU Lesser General Public
      16     License along with this library; if not, see
      17     <https://www.gnu.org/licenses/>.  */
      18  
      19  #ifndef _CRYPT_OBSOLETE_H
      20  #define _CRYPT_OBSOLETE_H 1
      21  
      22  /* These API functions are obsolete and provided for binary backward
      23     compatibility only.  New programs cannot be linked against them,
      24     and we do not install this header, but we still need it to build the
      25     library itself.  */
      26  
      27  /* Prepare to encrypt or decrypt data with DES, using KEY.  */
      28  extern void setkey (const char *key);
      29  
      30  extern void setkey_r (const char *key,
      31                        struct crypt_data *restrict data);
      32  
      33  /* Encrypt data in BLOCK in place if EDFLAG is zero; otherwise decrypt
      34     block in place.  */
      35  extern void encrypt (char *block, int edflag);
      36  
      37  extern void encrypt_r (char *block, int edflag,
      38                         struct crypt_data *restrict data);
      39  
      40  #endif /* crypt-obsolete.h */