× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm working withthe SSL_Init_Application API and seem to be
having a problem with one of the variables in the
structure.

The definition of the field in the structure is:
----------------
char*          localCertificate;     /* local certificate
          
----------------
The description for this is:
----------------
char *localCertificate  (input) 
On input, the localCertificate pointer must be set to point
to storage that has been allocated by the calling
application that will be used on output to contain the
application's registered local certificate. If a
certificate is not to be returned then set this pointer's
value to NULL and the localCertificateLen value to zero
(0). The storage should be large enough to accomodate the
size of the certificate. Most certificates are less than 2K
in length. On output, the localCertificate pointer will not
be changed, though the storage it points to will contain
the registered application's certificate. The certificate
will be the one registered for that application via the
Register Application for Certificate Use (OPM, QSYRGAP;
ILE, QsyRegisterAppForCertUse) API. See the Register
Application for Certificate Use API for information on the
format and values allowed for the application identifier. 
--------------------

I keep getting a "the specified parameter is invalid" when
using this API and assigning a certificate to the
application that I have registered with DCM.

So, what I would like to ask is, if you were to define and
allocate storage as described above, how would you do it?  

What I did was simply create a user defined character
variable and then assign the pointer to that variable.  I
also tried ALLOC and that resulted in the same error.

Because this API works when no certificate is assigned to
the application, and not when there is a certificate
assigned, that is leading me to believe that I have done
something wrong with this parm in the structure.

Thanks!

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.