Changeset 1272:905b3fd3c02b in roaraudio


Ignore:
Timestamp:
02/27/09 16:39:13 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added reading test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/pgptest.c

    r1270 r1272  
    4747 roar_vio_write(&pgp, STRING, strlen(STRING)); 
    4848 
    49 /* 
    50  while ((len = roar_vio_read(&zcat, buf, BUF_MAX))) 
     49 roar_vio_close(&pgp); 
     50 
     51 
     52 if ( roar_vio_open_file(&file, FILENAME, O_RDONLY, 0666) == -1 ) { 
     53  ROAR_ERR("roar_vio_open_file(&file, FILENAME, O_RDONLY, 0666) = -1"); 
     54  return 1; 
     55 } 
     56 
     57 if ( roar_vio_open_pgp_decrypt(&pgp, &file, PASSWORD) == -1 ) { 
     58  ROAR_ERR("roar_vio_open_pgp_decrypt(&pgp, &file, PASSWORD) = -1"); 
     59  return 1; 
     60 } 
     61 
     62 while ((len = roar_vio_read(&pgp, buf, BUF_MAX))) 
    5163  write(ROAR_STDOUT, buf, len); 
    52 */ 
    5364 
    5465 roar_vio_close(&pgp); 
Note: See TracChangeset for help on using the changeset viewer.