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

Side by Side Diff: crypto/signature_creator_nss.cc

Issue 36593002: crypto/nss_util: Get TPM slot id, do lookup by id instead of by name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sandbox debugging crap Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "crypto/signature_creator.h" 5 #include "crypto/signature_creator.h"
6 6
7 #include <cryptohi.h> 7 #include <cryptohi.h>
8 #include <keyhi.h> 8 #include <keyhi.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 } 84 }
85 signature->assign(signature_item.data, 85 signature->assign(signature_item.data,
86 signature_item.data + signature_item.len); 86 signature_item.data + signature_item.len);
87 SECITEM_FreeItem(&signature_item, PR_FALSE); 87 SECITEM_FreeItem(&signature_item, PR_FALSE);
88 return true; 88 return true;
89 } 89 }
90 90
91 SignatureCreator::SignatureCreator() 91 SignatureCreator::SignatureCreator()
92 : key_(NULL), 92 : key_(NULL),
93 sign_context_(NULL) { 93 sign_context_(NULL) {
94 LOG(ERROR) << "HIIIIIIIIIIIIIIIIIIIIIIIIIII";
94 EnsureNSSInit(); 95 EnsureNSSInit();
95 } 96 }
96 97
97 } // namespace crypto 98 } // namespace crypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698