|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
cryptexit |
« View previous topic :: View next topic » |
Author |
Message
|
EnOne |
Posted: Fri Oct 18, 2002 8:09 am Post subject: cryptexit |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 100 Location: Kansas City
|
I am working with channel encryption using security exits.
I was working with cryptexit c program that was posted to the repository and I have everything working but I have the same problem with the last couple characters are being left off.
Quote: |
Once this happened I could send messages across that would get encrypted. I only had a few minutes to play with it before going home this evening, but it looks like it was chopping the last few bytes off my messages! I will try to figure out what's going on tommorrow, it may just be my problem. But otherwise everything is apparently working - bduncan |
Quote: |
I am facing the same problem as faced by bduncan i.e. it is chopping the last few bytes off my message. - harwinderr |
I've noticed this same message other times from people using cryptexit. Has anyone come up with a solution? |
|
Back to top |
|
 |
EnOne |
Posted: Mon Nov 25, 2002 5:02 pm Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 100 Location: Kansas City
|
if you search mqsec.c for "- 8" you will find
*status = EncryptBuffer (optr,
&encryptBufLen,
inbuf + offsetIn,
inbuflen - 8,
MQ_DO_NO_COMPRESS,
&partnerpubk, &qmgrdata.privk, &mqdigsig);
when you change ,inbuflen -8, to just ,inbuflen, and recompile the problem is solved |
|
Back to top |
|
 |
bduncan |
Posted: Tue Nov 26, 2002 1:15 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
That fix rings a bell (about a year ago I had to implement this exit, came across the same 8 byte problem, and solved it, but since forgot how!)
I'll see if I can't alter the source code which is on this site with your fix, so nobody else runs into this problem... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|