Print this page
8927 sadb_x_kmc_t's KM cookie should be 64-bits
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libipsecutil/common/ipsec_util.h
          +++ new/usr/src/lib/libipsecutil/common/ipsec_util.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright 2017 Joyent, Inc.
       27 + */
  25   28  
  26   29  #ifndef _IPSEC_UTIL_H
  27   30  #define _IPSEC_UTIL_H
  28   31  
  29   32  /*
  30   33   * Headers and definitions for support functions that are shared by
  31   34   * the ipsec utilities ipseckey and ikeadm.
  32   35   */
  33   36  
  34   37  #ifdef __cplusplus
↓ open down ↓ 183 lines elided ↑ open up ↑
 218  221  void libssl_load(void);
 219  222  
 220  223  /*
 221  224   * crypto library (OpenSSL)
 222  225   */
 223  226  #define LIBCRYPTO       "libcrypto.so"
 224  227  
 225  228  void libcrypto_load(void);
 226  229  
 227  230  /*
 228      - * functions to manipulate the kmcookie-label mapping file
      231 + * functions to manipulate the IKEv1 kmcookie-label mapping file
 229  232   */
 230  233  
 231  234  #define KMCFILE         "/var/run/ipsec_kmc_map"
 232  235  
 233  236  /*
 234  237   * Insert a mapping into the file (if it's not already there), given the
 235  238   * new label.  Return the assigned cookie, or -1 on error.
 236  239   */
 237  240  extern int kmc_insert_mapping(char *);
 238  241  
↓ open down ↓ 237 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX