Print this page
9156 Remove openssl dependency from pkcs11_tpm


   6  *
   7  * This program is free software; you can redistribute it and/or modify
   8  * it under the terms of the Common Public License as published by
   9  * IBM Corporation; either version 1 of the License, or(at your option)
  10  * any later version.
  11  *
  12  * This program is distributed in the hope that it will be useful,
  13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15  * Common Public License for more details.
  16  *
  17  * You should have received a copy of the Common Public License
  18  * along with this program; if not, a copy can be viewed at
  19  * http://www.opensource.org/licenses/cpl1.0.php.
  20  */
  21 
  22 /* (C) COPYRIGHT International Business Machines Corp. 2001, 2002, 2005 */
  23 /*
  24  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25  * Use is subject to license terms.

  26  */
  27 
  28 #ifndef _TPMTOK_INT_H
  29 #define _TPMTOK_INT_H
  30 
  31 #include <stdio.h>
  32 #include <pthread.h>
  33 #include <string.h>
  34 #include <strings.h>
  35 #include <md5.h>
  36 #include <sha1.h>
  37 #include <limits.h>
  38 #include <syslog.h>
  39 #include <errno.h>
  40 #include <sys/types.h>
  41 #include <sys/stat.h>
  42 #include <sys/param.h>
  43 #include <sys/byteorder.h>
  44 #include <security/cryptoki.h>
  45 
  46 #include <tss/platform.h>
  47 #include <tss/tss_defines.h>
  48 #include <tss/tss_typedef.h>
  49 #include <tss/tss_structs.h>
  50 #include <tss/tspi.h>
  51 
  52 #define VERSION_MAJOR 2
  53 #define VERSION_MINOR 1
  54 
  55 #define MAX_SESSION_COUNT       64
  56 #define MAX_PIN_LEN     256




   6  *
   7  * This program is free software; you can redistribute it and/or modify
   8  * it under the terms of the Common Public License as published by
   9  * IBM Corporation; either version 1 of the License, or(at your option)
  10  * any later version.
  11  *
  12  * This program is distributed in the hope that it will be useful,
  13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15  * Common Public License for more details.
  16  *
  17  * You should have received a copy of the Common Public License
  18  * along with this program; if not, a copy can be viewed at
  19  * http://www.opensource.org/licenses/cpl1.0.php.
  20  */
  21 
  22 /* (C) COPYRIGHT International Business Machines Corp. 2001, 2002, 2005 */
  23 /*
  24  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25  * Use is subject to license terms.
  26  * Copyright 2018 Jason King
  27  */
  28 
  29 #ifndef _TPMTOK_INT_H
  30 #define _TPMTOK_INT_H
  31 
  32 #include <stdio.h>
  33 #include <pthread.h>
  34 #include <string.h>
  35 #include <strings.h>
  36 #include <sys/md5.h>
  37 #include <sys/sha1.h>
  38 #include <limits.h>
  39 #include <syslog.h>
  40 #include <errno.h>
  41 #include <sys/types.h>
  42 #include <sys/stat.h>
  43 #include <sys/param.h>
  44 #include <sys/byteorder.h>
  45 #include <security/cryptoki.h>
  46 
  47 #include <tss/platform.h>
  48 #include <tss/tss_defines.h>
  49 #include <tss/tss_typedef.h>
  50 #include <tss/tss_structs.h>
  51 #include <tss/tspi.h>
  52 
  53 #define VERSION_MAJOR 2
  54 #define VERSION_MINOR 1
  55 
  56 #define MAX_SESSION_COUNT       64
  57 #define MAX_PIN_LEN     256