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

Side by Side Diff: chrome/common/extensions/api/networking_private/networking_private_crypto.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/common/extensions/api/networking_private/networking_private_cry pto.h" 5 #include "chrome/common/extensions/api/networking_private/networking_private_cry pto.h"
6 6
7 #include <openssl/digest.h> 7 #include <openssl/digest.h>
8 #include <openssl/evp.h> 8 #include <openssl/evp.h>
9 #include <openssl/rsa.h> 9 #include <openssl/rsa.h>
10 #include <openssl/x509.h> 10 #include <openssl/x509.h>
11 #include <stddef.h>
11 12
12 #include "base/logging.h" 13 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
15 #include "crypto/openssl_util.h" 16 #include "crypto/openssl_util.h"
16 #include "crypto/rsa_private_key.h" 17 #include "crypto/rsa_private_key.h"
17 #include "crypto/scoped_openssl_types.h" 18 #include "crypto/scoped_openssl_types.h"
18 #include "extensions/common/cast/cast_cert_validator.h" 19 #include "extensions/common/cast/cast_cert_validator.h"
19 #include "net/cert/pem_tokenizer.h" 20 #include "net/cert/pem_tokenizer.h"
20 21
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 rsa.get(), RSA_PKCS1_PADDING); 166 rsa.get(), RSA_PKCS1_PADDING);
166 if (output_length < 0) { 167 if (output_length < 0) {
167 LOG(ERROR) << "Error during decryption."; 168 LOG(ERROR) << "Error during decryption.";
168 return false; 169 return false;
169 } 170 }
170 decrypted_output->resize(output_length); 171 decrypted_output->resize(output_length);
171 return true; 172 return true;
172 } 173 }
173 174
174 } // namespace networking_private_crypto 175 } // namespace networking_private_crypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698