| /* |
| * |
| * Copyright (c) 2011-2015 Nest Labs, Inc. |
| * All rights reserved. |
| * |
| * This document is the property of Nest. It is considered |
| * confidential and proprietary information. |
| * |
| * This document may not be reproduced or transmitted in any form, |
| * in whole or in part, without the express written permission of |
| * Nest. |
| * |
| * Description: |
| * Simplified implementation of OpenSSL's OPENSSL_cleanse function. |
| */ |
| |
| #include <string.h> |
| #include <openssl/crypto.h> |
| |
| void OPENSSL_cleanse(void *ptr, size_t len) |
| { |
| memset(ptr, 0, len); |
| } |