OLD | NEW |
1 /* tlsprf.c - TLS Pseudo Random Function (PRF) implementation | 1 /* tlsprf.c - TLS Pseudo Random Function (PRF) implementation |
2 * | 2 * |
3 * This Source Code Form is subject to the terms of the Mozilla Public | 3 * This Source Code Form is subject to the terms of the Mozilla Public |
4 * License, v. 2.0. If a copy of the MPL was not distributed with this | 4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 /* $Id$ */ | |
7 | 6 |
8 #include "pkcs11i.h" | 7 #include "pkcs11i.h" |
9 #include "blapi.h" | 8 #include "blapi.h" |
10 | 9 |
11 #define SFTK_OFFSETOF(str, memb) ((PRPtrdiff)(&(((str *)0)->memb))) | 10 #define SFTK_OFFSETOF(str, memb) ((PRPtrdiff)(&(((str *)0)->memb))) |
12 | 11 |
13 static void sftk_TLSPRFNull(void *data, PRBool freeit) | 12 static void sftk_TLSPRFNull(void *data, PRBool freeit) |
14 { | 13 { |
15 return; | 14 return; |
16 } | 15 } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 context->destroy = (SFTKDestroy) sftk_TLSPRFNull; | 181 context->destroy = (SFTKDestroy) sftk_TLSPRFNull; |
183 context->hashdestroy = (SFTKDestroy) sftk_TLSPRFHashDestroy; | 182 context->hashdestroy = (SFTKDestroy) sftk_TLSPRFHashDestroy; |
184 crv = CKR_OK; | 183 crv = CKR_OK; |
185 | 184 |
186 done: | 185 done: |
187 if (keyVal) | 186 if (keyVal) |
188 sftk_FreeAttribute(keyVal); | 187 sftk_FreeAttribute(keyVal); |
189 return crv; | 188 return crv; |
190 } | 189 } |
191 | 190 |
OLD | NEW |