Hello gn pr,

I have not programmed the QsyListUserCertificates in C but I have used it in RPGLE.
The selection control parameter is pointer to a character structure.
I have it initialized with fixed values as per the following RPGLE spec

D SelectCtl DS
D Ctllen 10I 0 Inz(8)
D Ctlpairs 10I 0 Inz(0)

It should work for you if pass it as a parameter containings two 4 byte binary numbers, the first binary number is assigned the length (8) and the second number set to zero.

Cheers, Peter

-----Original Message-----
From: c400-l-bounces+peter.connell=vedaadvantage.com@xxxxxxxxxxxx [mailto:c400-l-bounces+peter.connell=vedaadvantage.com@xxxxxxxxxxxx] On Behalf Of gn pr
Sent: Thursday, 30 June 2011 10:02 AM
To: c400-l@xxxxxxxxxxxx
Subject: [C400-L] Selection Control getting user certificates

Hi, 

I have the next code, because I'm trying to get the user 
certificates , but I cannot recover the certificates 
of the user, I think it because the Selection Control is not in a good format.
Any help is appreciated.
                                                               
 int main () {                                                 
                                                               
  char *Qualified_user_space_name = "GRACE     QGPL      "  ;  
  void *User_name = "GRACE     " ;                             
  char *Format_name = "CERT0200" ;                             
  char *Selection_control = "   8   0\0" ;                     
  char error_code[100];                                        
                                                               
                                                               
  QsyListUserCertificates                                      
          (Qualified_user_space_name,                          
           User_name,                                          
           Format_name,                                        
           Selection_control,                                  
           &error_code) ;                                      

 return 0 ; 
}
Thanks

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2019 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].