Search:

Type: Posts; User: MrUmunhum

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    11,000

    IT IS A TEST PROGRAM!!!!!!!! The only comment...

    IT IS A TEST PROGRAM!!!!!!!! The only comment worth while is about errno! Thanks for that.
  2. Replies
    6
    Views
    11,000

    The problem is if the sh hangs waiting for more...

    The problem is if the sh hangs waiting for more input. I need a way of sending EOF to the shell. right now, I am looking at termios and catching CTRL-D signal. Nether one has provided a solution. ...
  3. Replies
    6
    Views
    11,000

    sending CTRL-D to pipe

    Hi group,
    I have a simple test program that opens a pipe to a sh command. I want to be able to send a CTRL-D to the child. I have tried reading from the parent's keyboard and using a write but...
  4. Replies
    1
    Views
    2,473

    Never mind, I found

    Never mind, I found <linux.inut.h>
  5. Replies
    1
    Views
    2,473

    Looking for keyboard .h file

    Hi group,
    I'm being lazy again. I'm looking for a .h file that defines all possibility for keyboard input. Also mouse inputs.

    Thanks for your time.
  6. Solved! My problem was on line 7 redefined the...

    Solved! My problem was on line 7 redefined the term "BIO". Changed that line and all other references to the structure named BIO to a structure named Key now it compiles.

    Thanks for your time.
  7. BIO *PEM = BIO_new( BIO_s_mem() ); Doesn't compile?

    Hi group,
    This is a follow on to my other post:https://cboard.cprogramming.com/c-programming/172534-rsa-key-generate-then-encrypt-decrypt-error.html
    I am now tryin to create a public RSA to use to...
  8. Solved

    OK, I found this page Simple Public Key Encryption with RSA and OpenSSL and they cleared this up form me.

    I got this code to work:

    BIO *pri = BIO_new(BIO_s_mem());
    BIO *pub =...
  9. I am really confused now. What I want is to keep...

    I am really confused now. What I want is to keep the public and private keys in memory. These:
    -----BEGIN RSA PRIVATE KEY-----
    MIIEpQIBAAKCAQEAwR7fjPVxB9CH3xGe4y0wI0NpLjXsB1UEUURbvzvJY0RnSIkQ...
  10. OK, so this will wrtie the rsa to disk, now how...

    OK, so this will wrtie the rsa to disk, now how do I write the rsa to an RSA structure? I tries this:


    BIO *Public = BIO_new_mem_buf( Key, -1 );
    BIO_reset( Public );
    RC =...
  11. That did it! Now outputs this: Starting program:...

    That did it! Now outputs this:
    Starting program: /src/RHID/src/rhid/my_rsa
    Plain: 1234567890
    Encrypted: 256

    0000 0000 3AF4CCF2 7A09F0B8 6BB7BBB5 0096A9FB /* :...z...k....... */
    0016 0010 ...
  12. [ Found 1) fixed it. How do I extract the...

    [


    Found 1) fixed it.
    How do I extract the public/private RSA
    the lenght of the input should be the same as the output?
  13. RSA key generate then encrypt/decrypt error

    Hi group,
    I am having trouble with a test RSA c program. The program is using SSL to
    Generate an RSA
    Encrypt a test string
    Decrypt the output of step 2
    Compare the source and the output...
  14. Replies
    1
    Views
    2,821

    sscanf using '%p' fails to process.

    Hi group,
    I am fighting with sscanf again! I am attempting to split a string using the '%p' format. Have not been able to find the correct syntax with many searches. My test program:

    #define...
  15. Pseudotty troubles, reads not being done right

    Hi group,
    I have written a C program that uses Pseudo TTYs calls, The program work with some
    problems.
    character are not read immediately read.
    man causes a program exit
    up arrow does not...
  16. Replies
    0
    Views
    2,001

    Pseudo TTY not reading singal character

    Hi group,

    I have a simple C program that I am using to using to understand pseudo terminal programming. What I do is open a Pesudo TTY pair, then fork the program and the child calls Bash using...
Results 1 to 16 of 16