chiark / gitweb /
server/keyexch.c: Check that all of the algorithms match when setting up.
[tripe] / priv / comm.c
index ad2e518c64474888fb335abfaf1d96a7f58c58d2..316f6c8ed384e1eb6f73bf7aba4a00e31eda1d6f 100644 (file)
@@ -65,16 +65,15 @@ int pc_put(const void *p, size_t sz)
   return (0);
 }
 
-/* --- @pc_puterr@, @pc_putuint@, @pc_putsz@, @pc_puttops@ --- *
+/* --- @pc_puterr@, @pc_putuint@, @pc_putsz@ --- *
  *
  * Arguments:  @int err@ = error number to write
  *             @uint u@ = unsigned integer to write
  *             @size_t sz@ = size to write
- *             @const tunnel_ops *tops@ = tunnel pointer to write
  *
  * Returns:    Zero on success, @-1@ on error (and @errno@ set).
  *
- * Use:                Sends an error/integer/size/tunnel-ops pointer.
+ * Use:                Sends an error/integer/size.
  */
 
 #define PUT(abbr, type)                                                \
@@ -87,7 +86,7 @@ COMM_TYPES(PUT)
  *
  * Returns:    Zero on success, @-1@ on error (and @errno@ set).
  *
- * Use:                Sends a string/error/integer/tunnel-ops pointer.
+ * Use:                Sends a string.
  */
 
 int pc_putstring(const char *s)
@@ -132,23 +131,22 @@ int pc_get(void *p, size_t sz)
   return (0);
 }
 
-/* --- @pc_geterr@, @pc_getuint@, @pc_getsz@, @pc_getops@ --- *
+/* --- @pc_geterr@, @pc_getuint@, @pc_getsz@ --- *
  *
  * Arguments:  @int *err@ = where to put the error number
  *             @uint *u@ = where to put the unsigned integer
  *             @size_t *sz@ = where to put the size
- *             @const tunnel_ops **tops@ = where to put the tunnel pointer
  *
  * Returns:    Zero on success, @-1@ on error (and @errno@ set).
  *
- * Use:                Receives an error/integer/size/tunnel-ops pointer.
+ * Use:                Receives an error/integer/size.
  */
 
 #define GET(abbr, type)                                                        \
   int pc_get##abbr(type *x) { return (pc_get(x, sizeof(*x))); }
 COMM_TYPES(GET)
 
-/* --- @pc_gettring@ --- *
+/* --- @pc_getstring@ --- *
  *
  * Arguments:  @dstr *d@ = where to pc_put the string
  *