summaryrefslogtreecommitdiff
path: root/lang/cl/README
blob: b4a3c818b4c0b7ed376317933a40ba619a6c4ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Common Lisp Support for GPGME
-----------------------------

Requirements:

ASDF		Packaging Support
CFFI		Foreign Function Interface
gpg-error	GPG Error Codes

Use with:

> (asdf:operate 'asdf:load-op ':gpgme)


Examples
--------

(with-open-file (stream "/tmp/myout" :direction :output
			:if-exists :supersede :element-type '(unsigned-byte 8))
  (with-context (ctx)
    (setf (armor-p ctx) t)
    (op-export ctx "DEADBEEF" out)))

(with-context (ctx)
  (with-output-to-string (out)
    (setf (armor-p ctx) t)
    (op-export ctx "McTester" out)))

(gpgme:with-context (ctx :armor t)
  (with-output-to-string (out)
    (gpgme:op-export ctx "McTester" out)))


TODO
----

* When GPGME defines macros for include cert values -2, -1, 0 and 1,
  define lisp macros for them as well.

*