Chromium Code Reviews| Index: crypto/hmac_nss.cc |
| =================================================================== |
| --- crypto/hmac_nss.cc (revision 106500) |
| +++ crypto/hmac_nss.cc (working copy) |
| @@ -12,6 +12,10 @@ |
| #include "crypto/nss_util.h" |
| #include "crypto/scoped_nss_types.h" |
| +#if defined(OS_CHROMEOS) |
| +#include "crypto/nss_util_internal.h" |
| +#endif |
| + |
| namespace crypto { |
| struct HMACPlatformData { |
| @@ -48,7 +52,11 @@ |
| return false; |
| } |
| +#if defined(OS_CHROMEOS) |
|
Will Drewry
2011/10/22 19:05:40
Might be worth putting in a comment explaining why
zel
2011/10/22 19:13:15
Done.
|
| + plat_->slot_.reset(GetPublicNSSKeySlot()); |
| +#else |
| plat_->slot_.reset(PK11_GetBestSlot(plat_->mechanism_, NULL)); |
| +#endif |
| if (!plat_->slot_.get()) { |
| NOTREACHED(); |
| return false; |