OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 #ifdef DEBUG | |
6 static const char CVS_ID[] = "@(#) $RCSfile$ $Revision$ $Date$"; | |
7 #endif /* DEBUG */ | |
8 | |
9 #include "builtins.h" | 5 #include "builtins.h" |
10 | 6 |
11 /* | 7 /* |
12 * builtins/object.c | 8 * builtins/object.c |
13 * | 9 * |
14 * This file implements the NSSCKMDObject object for the | 10 * This file implements the NSSCKMDObject object for the |
15 * "builtin objects" cryptoki module. | 11 * "builtin objects" cryptoki module. |
16 */ | 12 */ |
17 | 13 |
18 /* | 14 /* |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 ) | 213 ) |
218 { | 214 { |
219 if ( (void*)NULL == io->mdObject.etc) { | 215 if ( (void*)NULL == io->mdObject.etc) { |
220 (void) nsslibc_memcpy(&io->mdObject,&builtins_prototype_mdObject, | 216 (void) nsslibc_memcpy(&io->mdObject,&builtins_prototype_mdObject, |
221 sizeof(builtins_prototype_mdObject)); | 217 sizeof(builtins_prototype_mdObject)); |
222 io->mdObject.etc = (void *)io; | 218 io->mdObject.etc = (void *)io; |
223 } | 219 } |
224 | 220 |
225 return &io->mdObject; | 221 return &io->mdObject; |
226 } | 222 } |
OLD | NEW |