× 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.



Thanks for your answers!

Removing the volatile key from the declarations and using the 'OBJN0100' format,
updating the versionvariable to have 10 characters , I have the Error: CPFB006 , and the Error code sections returns 16,
how can I read this error meaning ?

1. int main() {
2.     char path [50];
3.     strcpy(path, "/QIBM/USERDATA/ICSS/CERT/SERVER/DEFAULT.KDB");
4.  
5.     int pathLength;
6.     pathLength = strlen(path);
7.     char format [20];
8.     strcpy(format, "OBJN0100");
9.  
10.     char pwd [50];
11.     strcpy(pwd, "fyi");
12.     int pwdLength;
13.     pwdLength = strlen(pwd);
14.     
15.     int ccsid;
16.     ccsid = 850;
17.     char exportPath [50];
18.     strcpy(exportPath, "/home/me/export.pcks");
19.  
20.     int exportLength;
21.     exportLength = strlen(exportPath);
22.  
23.     char formatExport[20];
24.     strcpy(formatExport, "OBJN0100");
25.     char version [20];
26.     strcpy(version, "*PKCS12V3 ");
27.     char pwdExport [20];
28.     strcpy(pwdExport, "ryl");
29.  
30.     int expLength;
31.     expLength = strlen(pwdExport);
32.  
33.     
34.     void * temp = (void *) &errorCode;
35.  
36.     QykmExportKeyStore(path,
37.             &pathLength,
38.             format,
39.             pwd,
40.             &pwdLength,
41.             &ccsid,
42.             exportPath,
43.             &exportLength,
44.             formatExport,
45.             version,
46.             pwdExport,
47.             &expLength,
48.             &ccsid,
49.             &errorCode);
50. ...
51. }

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.