Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: tpmd_dev/openbsd/tpmd_dev.h

Issue 660204: Upgrade to tpm-emulator version 0.7. (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tpmd_dev/openbsd/Makefile ('k') | tpmd_dev/openbsd/tpmd_dev.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tpmd_dev/openbsd/tpmd_dev.h
diff --git a/tpmd_dev_openbsd/tpmd_dev.h b/tpmd_dev/openbsd/tpmd_dev.h
similarity index 78%
rename from tpmd_dev_openbsd/tpmd_dev.h
rename to tpmd_dev/openbsd/tpmd_dev.h
index 7872acc217dc28104651c31a74ce900321208e84..30b41429678bde1c520e9a4ebb2ccf2c2668b66b 100644
--- a/tpmd_dev_openbsd/tpmd_dev.h
+++ b/tpmd_dev/openbsd/tpmd_dev.h
@@ -1,14 +1,13 @@
-/* Software-Based Trusted Platform Module (TPM) Emulator for OpenBSD
+/* Software-based Trusted Platform Module (TPM) Emulator
+ * Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net>
* Copyright (C) 2007 Sebastian Schuetz <sebastian_schuetz@genua.de>
- * Copyright (C) 2007 Mario Strasser <mast@gmx.net>,
- * Swiss Federal Institute of Technology (ETH) Zurich
*
- * This program is free software; you can redistribute it and/or modify
+ * This module is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * This module is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
@@ -19,6 +18,8 @@
#ifndef _TPM_DEV_HEADER_
#define _TPM_DEV_HEADER_
+#include "config.h"
+
#define cdev_tpm_init(c,n) { \
dev_init(c,n,open),dev_init(c,n,close),dev_init(c,n,read), \
dev_init(c,n,write), dev_init(c,n,ioctl),(dev_type_stop((*))) lkmenodev, \
@@ -33,7 +34,7 @@ static struct socket *tpmd_sock = NULL;
static struct mbuf *nm = NULL;
static struct simplelock slock;
-char tpmd_socket_name[] = "/var/tpm/tpmd_socket:0";
+char tpmd_socket_name[] = TPM_SOCKET_NAME;
#define TPM_MODULE_NAME "tpm_dev"
#define TPM_STATE_IS_OPEN 0
« no previous file with comments | « tpmd_dev/openbsd/Makefile ('k') | tpmd_dev/openbsd/tpmd_dev.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698