Results 1 to 3 of 3

Thread: Please Help i can't take it anymore

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    England
    Posts
    94

    Please Help i can't take it anymore

    Hey Guys

    I just about had it

    I have been working on a getting my signed files to be verified for ages now but i keep getting an error message from the cryptverifydetachedmessagesignature. The error message is "error operation completed sucessfully" so you can see my fustration. obviously its not completing succesfully though because otherwise it would return TRUE. So i am completly stuck the bit that pisses me of most though is this was working then i decided to do it a different way rather then reading each bit in from a file and this didn't work so i went back to what i did before and it just won't work any help would be greatly appreciated.

    Cheers
    Peter
    "Let's all join forces, rule with an iron hand...and prove to all the world, metal rules the land..."
    -- Judas Priest

    My email is [email protected]

  2. #2
    jim mcnamara
    Guest
    I got into a mess like that. I just put in a line like

    verify();

    after EVERY api call I made. I also made sure that I didn't do tricky stuff like use api calls as aguments. No all-in-one-line stuff.

    I found that things I thought were working were not. Some functions return -1, 0 , +1 or special codes.
    So test each call.

    PHP Code:
    with a global FILE * - 

    FILE *complain;
    complain fopen("mycomplaints","w");

    void verify(){
      
    char Buffer[200];
      
    FormatMessageFORMAT_MESSAGE_FROM_SYSTEMNULL,     GetLastError(), LANG_NEUTRALBuffer2000L);
      
    fprintf(complain,"%s\n",Buffer);


  3. #3
    jim mcnamara
    Guest
    For what it's worth - I got this from allapi.net sample code on how to use the crypto calls suite. It's not in C it's written in VB, but it may help you.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width