Commit f6f45cbc authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: src/abstract_crypto.h:1.31
Rev: src/connection.h:1.53
parent 29950449
......@@ -135,13 +135,17 @@
(sign_spki method (object sexp)
;; "struct sexp *hash" "struct sexp *principal"
"UINT32 length" "const UINT8 *data")
;; FIXME: Perhaps this should be a method of the algorithm object instead?
(public_key method (object sexp) )))
*/
; Returns ( <pub-sig-alg-id> <s-expr>* ), i.e. the same
; structure that is expected by spki_make_verifier().
(public_key method (object sexp) ))) */
#define SIGN(signer, algorithm, length, data) \
((signer)->sign((signer), (algorithm), (length), (data)))
#define SIGN_SPKI(signer, length, data) ((signer)->sign((signer), (length), (data)))
#define SIGN_SPKI(signer, length, data) ((signer)->sign_spki((signer), (length), (data)))
#define SIGNER_PUBLIC(signer) ((signer)->public_key((signer)))
/* GABA:
......@@ -162,7 +166,7 @@
((verifier)->verify((verifier), (algorithm), (length), (data), (slength), (sdata)))
#define VERIFY_SPKI(verifier, length, data, e) \
((verifier)->verify((verifier), (length), (data), (e)))
((verifier)->verify_spki((verifier), (length), (data), (e)))
/* GABA:
(class
......
......@@ -55,7 +55,7 @@
* to indicate our role in the protocol.
* For instance,
*
* connection->versions[connection & CONNECTION_MODE]
* connection->versions[connection->flags & CONNECTION_MODE]
*
* is the version string we sent. Furthermore, install_keys() depends
* on the numerical values of CONNECTION_SERVER and CONNECTION_CLIENT. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment