Debian Codegraph @

lang/cl/README

raw
1 Common Lisp Support for GPGME
2 -----------------------------
3
4 Requirements:
5
6 ASDF Packaging Support
7 CFFI Foreign Function Interface
8 trivial-garbage Finalizers
9 gpg-error GPG Error Codes
10
11 Use with:
12
13 > (asdf:load-system "gpgme")
14
15
16 Examples
17 --------
18
19 (with-open-file (out "/tmp/myout"
20 :direction :output
21 :if-exists :supersede
22 :element-type '(unsigned-byte 8))
23 (with-context (ctx)
24 (setf (armorp ctx) t)
25 (op-export ctx "DEADBEEF" out)))
26
27 (with-context (ctx)
28 (with-output-to-string (out)
29 (setf (armorp ctx) t)
30 (op-export ctx "McTester" out)))
31
32 (gpgme:with-context (ctx :armor t)
33 (with-output-to-string (out)
34 (gpgme:op-export ctx "McTester" out)))
35
36 (gpgme:with-context (ctx :armor t)
37 (let ((recipient1 (gpgme:get-key ctx "DEADBEEF"))
38 (recipient2 (gpgme:get-key ctx "Alice"))
39 (message "Hello, world!"))
40 (with-output-to-string (out)
41 (with-input-from-string (in message)
42 (gpgme:op-encrypt ctx (vector recipient1 recipient2) in out)))))
43
44 (gpgme:with-context (ctx :armor t)
45 (let ((message "Hello, world!"))
46 (with-output-to-string (out)
47 (with-input-from-string (in message)
48 (gpgme:op-sign ctx in out)))))
49
50
51 TODO
52 ----
53
54 * When GPGME defines macros for include cert values -2, -1, 0 and 1,
55 define lisp macros for them as well.
56
57 *