Build doesn't fail on examples anymore.  Examples built and executed by make's 'installcheck' rule.  Example tests literal data.
   
    
-SUBDIRS = examples/01_decrypt
-
 pkglib_LTLIBRARIES = libsimplepgp.la
 pkginclude_HEADERS = src/simplepgp.h
 
 	src/util.c \
 	src/mpi.c 
 
+installcheck-local:
+	make -C examples/01_decrypt
+	pushd `pwd`/examples/01_decrypt ;\
+	./decrypt ;\
+	popd
+
 clean-local:
 	-rm -rf build
 
    
 #include <stdio.h>
 #include <fcntl.h>
 #include <string.h>
+#include <stdint.h>
 
 #include <simplepgp.h>
 
   int fd;
   int seckey_len, ctext_len;
   spgp_packet_t *pkt;
+  char *data, *filename;
+  uint32_t datalen, filenamelen;
 
   printf("simplepgp decrypt example.\n");
 
     return 1;
   }
 
+  data = spgp_get_literal_data(pkt, &datalen,
+			       &filename, &filenamelen);
+  if (NULL == data) {
+    fprintf(stderr, "error: %s\n", spgp_err_str(spgp_err()));
+    return 1;
+  }
+  printf("Filename length: %u\n", filenamelen);
+  printf("Data length: %u\n", datalen);
+
   spgp_close();
 
   return 0;