PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-21 Thread Darren J Moffat
Template Version: @(#)sac_nextcase 1.70 03/30/10 SMI This information is Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 1. Introduction 1.1. Project/Component Working Name: PKCS#11 URI parser for libcryptoutil 1.2. Name of Document Author/Supplier:

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-21 Thread Gary Winiger
> We need only one function for parsing the URI, all other helper > functions are static. The function takes a string with the PKCS#11 URI > and fills up a structure allocated by the caller. > > int pkcs11_parse_uri(const char *str, pkcs11_uri_t *uri); > Interface Stability > --

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-21 Thread Garrett D'Amore
+1 -- Garrett Darren J Moffat wrote: > >Template Version: @(#)sac_nextcase 1.70 03/30/10 SMI >This information is Copyright (c) 2010, Oracle and/or its affiliates. All >rights reserved. >1. Introduction >1.1. Project/Component Working Name: >PKCS#11 URI parser for libcryptoutil >

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-24 Thread Jan Pechanec
On Fri, 21 May 2010, Darren J Moffat wrote: >Template Version: @(#)sac_nextcase 1.70 03/30/10 SMI >This information is Copyright (c) 2010, Oracle and/or its affiliates. All >rights reserved. >1. Introduction >1.1. Project/Component Working Name: >PKCS#11 URI parser for libcryptoutil >

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-25 Thread Nicolas Williams
On Fri, May 21, 2010 at 03:40:54AM -0700, Darren J Moffat wrote: > /* That's what getpassphrase(3c) supports. */ > #define PK11_MAX_TOKEN_PIN_LEN 256 ... > int pkcs11_parse_uri(const char *str, pkcs11_uri_t *uri); > > Return codes are defined: ... > #define PK11_MUTEX_ERROR6

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-25 Thread James Carlson
Nicolas Williams wrote: > On Fri, May 21, 2010 at 03:40:54AM -0700, Darren J Moffat wrote: >> /* That's what getpassphrase(3c) supports. */ >> #define PK11_MAX_TOKEN_PIN_LEN 256 > ... >> int pkcs11_parse_uri(const char *str, pkcs11_uri_t *uri); >> >> Return codes are defined: > ... >>

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-25 Thread Nicolas Williams
On Tue, May 25, 2010 at 05:00:50PM -0400, James Carlson wrote: > Nicolas Williams wrote: > > Hmmm, I think it'd have been better to have the function return an error > > when a PIN is need and let the app call it again with the PIN -- let the > > app prompt for a PIN. > > > > There's no way to dea

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-05-26 Thread Jan Pechanec
On Tue, 25 May 2010, James Carlson wrote: >Nicolas Williams wrote: >> On Fri, May 21, 2010 at 03:40:54AM -0700, Darren J Moffat wrote: >>> /* That's what getpassphrase(3c) supports. */ >>> #define PK11_MAX_TOKEN_PIN_LEN 256 >> ... >>> int pkcs11_parse_uri(const char *str, pkcs11_uri_t

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-06-02 Thread Jan Pechanec
On Mon, 24 May 2010, Jan Pechanec wrote: >>Template Version: @(#)sac_nextcase 1.70 03/30/10 SMI >>This information is Copyright (c) 2010, Oracle and/or its affiliates. All >>rights reserved. >>1. Introduction >>1.1. Project/Component Working Name: >> PKCS#11 URI parser for libcryptoutil

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-06-02 Thread Nicolas Williams
On Wed, Jun 02, 2010 at 04:44:11PM +0200, Jan Pechanec wrote: > one last change, hopefully. The "passphrasedialog" changed to > the "pinfile". This resulted from the codereview done on the > ef-inter...@sun.com. Depending on the application, the value could be > overloaded to contain "/bin

Re: PKCS#11 URI parser for libcryptoutil [PSARC/2010/188 FastTrack timeout 05/28/2010]

2010-06-02 Thread Jan Pechanec
On Wed, 2 Jun 2010, Nicolas Williams wrote: >On Wed, Jun 02, 2010 at 04:44:11PM +0200, Jan Pechanec wrote: >> one last change, hopefully. The "passphrasedialog" changed to >> the "pinfile". This resulted from the codereview done on the >> ef-inter...@sun.com. Depending on the application, t