| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hello,
I just discovered that Apple provides a PKCS#11 token in /usr/libexec/SmartCardServices/pkcs11/pkcs11.bundle/Contents/MacOS/pkcs11. This token uses the MuscleCard lower level API (use of MSC* functions) so I guess it is the PKCS#11 provided by Muscle.
I tried to use it and I get a crash in the C_Initialize() call. I reported a bug in radar as Problem ID: 4726179.
Is this PKCS#11 token supposed to work?
Thanks,
Here is the bug report:
11-Sep-2006 10:42 AM Ludovic Rousseau: Summary: Apple provides a PKCS#11 token in /usr/libexec/SmartCardServices/pkcs11/pkcs11.bundle/Contents/MacOS/pkcs11 but the code crashes when C_Initialize() is called.
Steps to Reproduce: Rebuild the attached sample code and execute it.
Expected Results: No error and normal exit of the sample code
Actual Results: short version: $ ./minimal minimal.c:23 minimal.c:31 minimal.c:36 0x263d4 0x1733c Segmentation fault
extended version: $ gdb ./minimal GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:17:43 GMT 2006) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries .. done
(gdb) r Starting program: /Users/lroussea/Documents/minimal Reading symbols for shared libraries . done Reading symbols for shared libraries ....... done minimal.c:23 minimal.c:31 minimal.c:36 0x263d4 0x1733c
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xc0000000
0xffff9340 in ___bigcopy () at
/System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h:194
194 /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h:
No such file or directory.
in /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h(gdb) bt #0 0xffff9340 in ___bigcopy () at /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h:194 #1 0xffff9188 in ___bigcopy () at /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h:194 Previous frame identical to this frame (corrupt stack?) (gdb)
The crash occurs between lines 36 and 44, i.e. in the (*p->C_Initialize) call
-- Dr. Ludovic Rousseau
Attachment:
minimal.c
Description: Binary data
_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.