Get the user certificates with the API

415 pts.
Tags:
API
C++
Certificate
Hi, I have the next code to get the user certificates: 
 int main () {
  char *Qualified_user_space_name = "GRACE     QGPL      "  ;
  void *User_name = "GRACE     " ;
  char *Format_name = "CERT0200" ;
  char *Selection_control = "   8   0" ;
  char error_code[100];
                       
  QsyListUserCertificates
          (Qualified_user_space_name, 
           User_name,                 
           Format_name,               
           Selection_control,         
           &error_code) ;             
  
  return 0 ; 
}
 but I cannot get the certificates I guess is the selection control parameter, Could you help me please?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    To define the selection control, you should look first to the QSYSINC library that should be installed on your system. Look first at member QSYLSTUC in source file H. From there, you should see a reference to Qsy_Sel_Ctrl_T, and you can see a description of that in member QSYDIGID in the same source file. If QSYSINC is not installed, see if you can get it installed. It is a no-charge option that provides basic prototypes for most APIs. If you can't get it installed, post back and we'll see if the appropriate parts can be posted. Tom
    125,585 pointsBadges:
    report
  • GraceP
    HI , it is installed and I can to see the description of Qsy_Sel_Ctrl_T in the QSYDIGID member :) thanks a lot. :) . I have additional question, in this structure is not represented the Qsy_Sel_Ctrl_Pair_T , how we add this selection pairs to our selection control ? or I missing something ?
    415 pointsBadges:
    report
  • TomLiotta
    The QSYSINC example typedef struct has a comment in place of an actual definition of a Pair_Disp[] array. IBM doesn't know how many elements you will need. After Qsy_Sel_Ctrl_T in that source member is another typedef struct for Qsy_Sel_Ctrl_Pair_T -- and as you'll see, it also has a comment in place of Value[] because again it'll be your decision how to assign each Selection value. The values can all be different lengths. You will probably build the complete structure in memory by setting through it with a pointer. The beginning will be based on Qsy_Sel_Ctrl_T. Next will come a series of structures based on Qsy_Sel_Ctrl_Pair_T. Each one of those will have a Value[] value. Since each Value[] array will probably be a different length, each Qsy_Sel_Ctrl_Pair_T structure will start at a variable offset from the one before. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following