~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to g10/server.c

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
{
70
70
/*   ctrl_t ctrl = assuan_get_pointer (ctx); */
71
71
 
 
72
  (void)ctx;
 
73
  (void)value;
 
74
 
72
75
  /* Fixme: Implement the tty and locale args. */
73
76
  if (!strcmp (key, "display"))
74
77
    {
120
123
{
121
124
/*   ctrl_t ctrl = assuan_get_pointer (ctx); */
122
125
 
 
126
  (void)ctx;
 
127
 
123
128
  if (strstr (line, "--armor"))
124
129
    ; /* FIXME */
125
130
  else if (strstr (line, "--base64"))
127
132
  else if (strstr (line, "--binary"))
128
133
    ;
129
134
  else
130
 
    ; /* FIXME (autodetect encoding) */
 
135
    {
 
136
      /* FIXME (autodetect encoding) */
 
137
    }
131
138
}
132
139
 
133
140
 
136
143
output_notify (assuan_context_t ctx, const char *line)
137
144
{
138
145
/*   ctrl_t ctrl = assuan_get_pointer (ctx); */
 
146
  
 
147
  (void)ctx;
139
148
 
140
149
  if (strstr (line, "--armor"))
141
150
    ; /* FIXME */
142
151
  else if (strstr (line, "--base64"))
143
 
    ; /* FIXME */
 
152
    {
 
153
      /* FIXME */
 
154
    }
144
155
}
145
156
 
146
157
 
160
171
static int 
161
172
cmd_recipient (assuan_context_t ctx, char *line)
162
173
{
 
174
  (void)ctx;
 
175
  (void)line;
163
176
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
164
177
}
165
178
 
183
196
static int 
184
197
cmd_signer (assuan_context_t ctx, char *line)
185
198
{
 
199
  (void)ctx;
 
200
  (void)line;
186
201
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
187
202
}
188
203
 
204
219
static int 
205
220
cmd_encrypt (assuan_context_t ctx, char *line)
206
221
{
 
222
  (void)ctx;
 
223
  (void)line;
207
224
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
208
225
}
209
226
 
216
233
static int 
217
234
cmd_decrypt (assuan_context_t ctx, char *line)
218
235
{
 
236
  (void)ctx;
 
237
  (void)line;
219
238
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
220
239
}
221
240
 
239
258
  gnupg_fd_t out_fd = assuan_get_output_fd (ctx);
240
259
  FILE *out_fp = NULL;
241
260
 
 
261
  (void)line;
 
262
 
242
263
  if (fd == GNUPG_INVALID_FD)
243
264
    return gpg_error (GPG_ERR_ASS_NO_INPUT);
244
265
 
278
299
static int 
279
300
cmd_sign (assuan_context_t ctx, char *line)
280
301
{
 
302
  (void)ctx;
 
303
  (void)line;
281
304
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
282
305
}
283
306
 
290
313
static int 
291
314
cmd_import (assuan_context_t ctx, char *line)
292
315
{
 
316
  (void)ctx;
 
317
  (void)line;
293
318
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
294
319
}
295
320
 
308
333
static int 
309
334
cmd_export (assuan_context_t ctx, char *line)
310
335
{
 
336
  (void)ctx;
 
337
  (void)line;
311
338
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
312
339
}
313
340
 
320
347
static int 
321
348
cmd_delkeys (assuan_context_t ctx, char *line)
322
349
{
 
350
  (void)ctx;
 
351
  (void)line;
323
352
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
324
353
}
325
354
 
355
384
static int 
356
385
do_listkeys (assuan_context_t ctx, char *line, int mode)
357
386
{
 
387
  (void)ctx;
 
388
  (void)line;
 
389
  (void)mode;
 
390
 
358
391
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
359
392
}
360
393
 
382
415
static int 
383
416
cmd_genkey (assuan_context_t ctx, char *line)
384
417
{
 
418
  (void)ctx;
 
419
  (void)line;
385
420
  return gpg_error (GPG_ERR_NOT_SUPPORTED);
386
421
}
387
422