Author |
Message
|
j1 |
Posted: Wed Mar 15, 2006 1:22 pm Post subject: Need help writing an C based MQ client/Server prog for MQ 6 |
|
|
 Centurion
Joined: 23 Jun 2003 Posts: 139
|
Hi ,
I sthere any sample code for SSL based communications using C based programs in MQ 6. My C is a bit rusty, so im trying to find some guidance. Appreciate the help. This is on Solaris |
|
Back to top |
|
 |
wschutz |
Posted: Wed Mar 15, 2006 2:59 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
What are you looking for, how to pass the SSL parameters on the MQCONNX call? _________________ -wayne |
|
Back to top |
|
 |
j1 |
Posted: Thu Mar 16, 2006 7:02 am Post subject: |
|
|
 Centurion
Joined: 23 Jun 2003 Posts: 139
|
to start with:
- What is a truststore and what is a keystore. What is the difference and how do i assign them in C Iss the .sto file the keystore. Do i need to do anything else for the truststore.
- How is writing an SSL client for C different than Java
- I am trying to use a channel table. How do I assign that in the code, or Do i use an environment variable and if so, which one...
Thanks |
|
Back to top |
|
 |
j1 |
Posted: Thu Mar 16, 2006 8:47 am Post subject: |
|
|
 Centurion
Joined: 23 Jun 2003 Posts: 139
|
Im also getting undefined symbol errors for all my MQ calls like:
MQCLOSE
MQPUT
MQOPEN
MQDISC
MQCONNX |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 16, 2006 8:56 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You should read the Security manual for WebSphere MQ.
It should help a lot with your questions on SSL. And then you should go look for a more general primer or tutorial on SSL.
The Application Programming Guide has specific steps for building C applications. You should read and follow those.
We're not here to give general training. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mvic |
Posted: Thu Mar 16, 2006 9:16 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
j1 |
Posted: Thu Mar 16, 2006 10:03 am Post subject: |
|
|
 Centurion
Joined: 23 Jun 2003 Posts: 139
|
jefflowrey, I dont beleive I asked for general training. Most questions, can eventually be boiled down to a 'training issue'. I beleive my questions were reasonably specific.
I hope your general answers to my specific questions help... |
|
Back to top |
|
 |
vennela |
Posted: Thu Mar 16, 2006 10:34 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
sailesh wrote: |
I beleive my questions were reasonably specific.
|
Yes, but it takes atleast a week to explain you how all that works.
Have you read the SSL manual?
You need a C programming class.
Quote: |
Im also getting undefined symbol errors for all my MQ calls like:
MQCLOSE
MQPUT
MQOPEN
MQDISC
MQCONNX |
How are we suppose to understand what symbols?
If you think we are not helping then let me try something
Is your simple C programming without SSL working?
What are you trying to do in your program?
You mentioned you are using MQCONNX call and in another post you are talking about channel tables? Which one are you exactly using
Have you looked at the samples shipped with the product? Like amqsput amqsget etc...
Hope this helps you to get started with what you need to look for. |
|
Back to top |
|
 |
j1 |
Posted: Thu Mar 16, 2006 11:26 am Post subject: |
|
|
 Centurion
Joined: 23 Jun 2003 Posts: 139
|
Vennela, As I had pointed out earlier, my C is quite rusty and its been a while since I last coded in C
What I came here looking for was something to get me started in the right direction. for the benefit of others in this forum a sample SSL MQ client, along with an enterprise implementation example can be found at:
http://www.redbooks.ibm.com/redbooks/pdfs/sg246814.pdf
With regards to
Quote: |
"How are we suppose to understand what symbols?" |
The error I was getting with unresolved symbols was to do with the MQCLOSE,MQOPEN etc... calls themselves not being understood by the compiler. This was because the cmqc.h header file was not in the correct dir, as i later found out.
I did go through the SSL manual and a couple of other books, but a lot of it seems to be based on MQ 5.3. Thanks anyways..[/quote] |
|
Back to top |
|
 |
vennela |
Posted: Thu Mar 16, 2006 11:38 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
|