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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
|
/*
* Copyright (C) 2017 Nikos Mavrogiannopoulos
*
* Author: Nikos Mavrogiannopoulos
*
* This file is part of GnuTLS.
*
* The GnuTLS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>
*
*/
/* This file contains the definitions of OpenPGP stub functions
* for ABI compatibility.
*/
#include "gnutls_int.h"
#include <gnutls/openpgp.h>
#include <gnutls/abstract.h>
int gnutls_openpgp_crt_init(gnutls_openpgp_crt_t * key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
void gnutls_openpgp_crt_deinit(gnutls_openpgp_crt_t key)
{
return;
}
int gnutls_openpgp_crt_import(gnutls_openpgp_crt_t key,
const gnutls_datum_t * data,
gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_export(gnutls_openpgp_crt_t key,
gnutls_openpgp_crt_fmt_t format,
void *output_data,
size_t * output_data_size)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_export2(gnutls_openpgp_crt_t key,
gnutls_openpgp_crt_fmt_t format,
gnutls_datum_t * out)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_print(gnutls_openpgp_crt_t cert,
gnutls_certificate_print_formats_t
format, gnutls_datum_t * out)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_key_usage(gnutls_openpgp_crt_t key,
unsigned int *key_usage)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_fingerprint(gnutls_openpgp_crt_t key,
void *fpr, size_t * fprlen)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_subkey_fingerprint(gnutls_openpgp_crt_t
key,
unsigned int idx,
void *fpr, size_t * fprlen)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_name(gnutls_openpgp_crt_t key,
int idx, char *buf, size_t * sizeof_buf)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
gnutls_pk_algorithm_t
gnutls_openpgp_crt_get_pk_algorithm(gnutls_openpgp_crt_t key,
unsigned int *bits)
{
return GNUTLS_PK_UNKNOWN;
}
int gnutls_openpgp_crt_get_version(gnutls_openpgp_crt_t key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
time_t gnutls_openpgp_crt_get_creation_time(gnutls_openpgp_crt_t key)
{
return (time_t)-1;
}
time_t gnutls_openpgp_crt_get_expiration_time(gnutls_openpgp_crt_t key)
{
return (time_t)-1;
}
int gnutls_openpgp_crt_get_key_id(gnutls_openpgp_crt_t key,
gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_check_hostname(gnutls_openpgp_crt_t key,
const char *hostname)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_check_hostname2(gnutls_openpgp_crt_t key,
const char *hostname, unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int
gnutls_openpgp_crt_check_email(gnutls_openpgp_crt_t key, const char *email, unsigned flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_revoked_status(gnutls_openpgp_crt_t key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_subkey_count(gnutls_openpgp_crt_t key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_subkey_idx(gnutls_openpgp_crt_t key,
const gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_subkey_revoked_status
(gnutls_openpgp_crt_t key, unsigned int idx)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
gnutls_pk_algorithm_t
gnutls_openpgp_crt_get_subkey_pk_algorithm(gnutls_openpgp_crt_t
key,
unsigned int idx,
unsigned int *bits)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
time_t
gnutls_openpgp_crt_get_subkey_creation_time
(gnutls_openpgp_crt_t key, unsigned int idx)
{
return (time_t)-1;
}
time_t
gnutls_openpgp_crt_get_subkey_expiration_time
(gnutls_openpgp_crt_t key, unsigned int idx)
{
return (time_t)-1;
}
int gnutls_openpgp_crt_get_subkey_id(gnutls_openpgp_crt_t key,
unsigned int idx,
gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_subkey_usage(gnutls_openpgp_crt_t key,
unsigned int idx,
unsigned int *key_usage)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_subkey_pk_dsa_raw(gnutls_openpgp_crt_t
crt, unsigned int idx,
gnutls_datum_t * p,
gnutls_datum_t * q,
gnutls_datum_t * g,
gnutls_datum_t * y)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_subkey_pk_rsa_raw(gnutls_openpgp_crt_t
crt, unsigned int idx,
gnutls_datum_t * m,
gnutls_datum_t * e)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_pk_dsa_raw(gnutls_openpgp_crt_t crt,
gnutls_datum_t * p,
gnutls_datum_t * q,
gnutls_datum_t * g,
gnutls_datum_t * y)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_pk_rsa_raw(gnutls_openpgp_crt_t crt,
gnutls_datum_t * m,
gnutls_datum_t * e)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_preferred_key_id(gnutls_openpgp_crt_t
key,
gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int
gnutls_openpgp_crt_set_preferred_key_id(gnutls_openpgp_crt_t key,
const
gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/* privkey stuff.
*/
int gnutls_openpgp_privkey_init(gnutls_openpgp_privkey_t * key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
void gnutls_openpgp_privkey_deinit(gnutls_openpgp_privkey_t key)
{
return;
}
gnutls_pk_algorithm_t
gnutls_openpgp_privkey_get_pk_algorithm
(gnutls_openpgp_privkey_t key, unsigned int *bits)
{
return GNUTLS_PK_UNKNOWN;
}
gnutls_sec_param_t
gnutls_openpgp_privkey_sec_param(gnutls_openpgp_privkey_t key)
{
return 0;
}
int gnutls_openpgp_privkey_import(gnutls_openpgp_privkey_t key,
const gnutls_datum_t * data,
gnutls_openpgp_crt_fmt_t format,
const char *password,
unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_fingerprint(gnutls_openpgp_privkey_t
key, void *fpr,
size_t * fprlen)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_subkey_fingerprint
(gnutls_openpgp_privkey_t key, unsigned int idx, void *fpr,
size_t * fprlen)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_key_id(gnutls_openpgp_privkey_t key,
gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_subkey_count(gnutls_openpgp_privkey_t key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_subkey_idx(gnutls_openpgp_privkey_t
key,
const
gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_subkey_revoked_status
(gnutls_openpgp_privkey_t key, unsigned int idx)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_revoked_status
(gnutls_openpgp_privkey_t key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
gnutls_pk_algorithm_t
gnutls_openpgp_privkey_get_subkey_pk_algorithm
(gnutls_openpgp_privkey_t key, unsigned int idx, unsigned int *bits)
{
return GNUTLS_PK_UNKNOWN;
}
time_t
gnutls_openpgp_privkey_get_subkey_expiration_time
(gnutls_openpgp_privkey_t key, unsigned int idx)
{
return (time_t)-1;
}
int gnutls_openpgp_privkey_get_subkey_id(gnutls_openpgp_privkey_t
key, unsigned int idx,
gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
time_t
gnutls_openpgp_privkey_get_subkey_creation_time
(gnutls_openpgp_privkey_t key, unsigned int idx)
{
return (time_t)-1;
}
int gnutls_openpgp_privkey_export_subkey_dsa_raw
(gnutls_openpgp_privkey_t pkey, unsigned int idx,
gnutls_datum_t * p, gnutls_datum_t * q, gnutls_datum_t * g,
gnutls_datum_t * y, gnutls_datum_t * x)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_export_subkey_rsa_raw
(gnutls_openpgp_privkey_t pkey, unsigned int idx,
gnutls_datum_t * m, gnutls_datum_t * e, gnutls_datum_t * d,
gnutls_datum_t * p, gnutls_datum_t * q, gnutls_datum_t * u)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_export_dsa_raw(gnutls_openpgp_privkey_t
pkey, gnutls_datum_t * p,
gnutls_datum_t * q,
gnutls_datum_t * g,
gnutls_datum_t * y,
gnutls_datum_t * x)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_export_rsa_raw(gnutls_openpgp_privkey_t
pkey, gnutls_datum_t * m,
gnutls_datum_t * e,
gnutls_datum_t * d,
gnutls_datum_t * p,
gnutls_datum_t * q,
gnutls_datum_t * u)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_export(gnutls_openpgp_privkey_t key,
gnutls_openpgp_crt_fmt_t format,
const char *password,
unsigned int flags,
void *output_data,
size_t * output_data_size)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_export2(gnutls_openpgp_privkey_t key,
gnutls_openpgp_crt_fmt_t format,
const char *password,
unsigned int flags,
gnutls_datum_t * out)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_set_preferred_key_id
(gnutls_openpgp_privkey_t key, const gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_privkey_get_preferred_key_id
(gnutls_openpgp_privkey_t key, gnutls_openpgp_keyid_t keyid)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_get_auth_subkey(gnutls_openpgp_crt_t crt,
gnutls_openpgp_keyid_t
keyid, unsigned int flag)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/* Keyring stuff.
*/
int gnutls_openpgp_keyring_init(gnutls_openpgp_keyring_t * keyring)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
void gnutls_openpgp_keyring_deinit(gnutls_openpgp_keyring_t keyring)
{
return;
}
int gnutls_openpgp_keyring_import(gnutls_openpgp_keyring_t keyring,
const gnutls_datum_t * data,
gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_keyring_check_id(gnutls_openpgp_keyring_t ring,
const gnutls_openpgp_keyid_t
keyid, unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_verify_ring(gnutls_openpgp_crt_t key,
gnutls_openpgp_keyring_t
keyring, unsigned int flags,
unsigned int *verify
/* the output of the verification */
)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_crt_verify_self(gnutls_openpgp_crt_t key,
unsigned int flags,
unsigned int *verify)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_keyring_get_crt(gnutls_openpgp_keyring_t ring,
unsigned int idx,
gnutls_openpgp_crt_t * cert)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_openpgp_keyring_get_crt_count(gnutls_openpgp_keyring_t ring)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
void
gnutls_openpgp_set_recv_key_function(gnutls_session_t session,
gnutls_openpgp_recv_key_func func)
{
return;
}
int gnutls_certificate_set_openpgp_key
(gnutls_certificate_credentials_t res,
gnutls_openpgp_crt_t crt, gnutls_openpgp_privkey_t pkey)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int
gnutls_certificate_get_openpgp_key(gnutls_certificate_credentials_t res,
unsigned index,
gnutls_openpgp_privkey_t *key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int
gnutls_certificate_get_openpgp_crt(gnutls_certificate_credentials_t res,
unsigned index,
gnutls_openpgp_crt_t **crt_list,
unsigned *crt_list_size)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int
gnutls_certificate_set_openpgp_key_file
(gnutls_certificate_credentials_t res, const char *certfile,
const char *keyfile, gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_certificate_set_openpgp_key_mem
(gnutls_certificate_credentials_t res,
const gnutls_datum_t * cert, const gnutls_datum_t * key,
gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int
gnutls_certificate_set_openpgp_key_file2
(gnutls_certificate_credentials_t res, const char *certfile,
const char *keyfile, const char *subkey_id,
gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int
gnutls_certificate_set_openpgp_key_mem2
(gnutls_certificate_credentials_t res,
const gnutls_datum_t * cert, const gnutls_datum_t * key,
const char *subkey_id, gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_certificate_set_openpgp_keyring_mem
(gnutls_certificate_credentials_t c, const unsigned char *data,
size_t dlen, gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
int gnutls_certificate_set_openpgp_keyring_file
(gnutls_certificate_credentials_t c, const char *file,
gnutls_openpgp_crt_fmt_t format)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_pubkey_import_openpgp:
* @key: The public key
* @crt: The certificate to be imported
* @flags: should be zero
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 2.12.0
**/
int gnutls_pubkey_import_openpgp(gnutls_pubkey_t key,
gnutls_openpgp_crt_t crt,
unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_pubkey_import_openpgp_raw:
* @pkey: The public key
* @data: The public key data to be imported
* @format: The format of the public key
* @keyid: The key id to use (optional)
* @flags: Should be zero
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 3.1.3
**/
int gnutls_pubkey_import_openpgp_raw(gnutls_pubkey_t pkey,
const gnutls_datum_t * data,
gnutls_openpgp_crt_fmt_t
format,
const gnutls_openpgp_keyid_t
keyid, unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_pubkey_get_key_id:
* @key: Holds the public key
* @flags: should be one of the flags from %gnutls_keyid_flags_t
* @output_data: will contain the key ID
* @output_data_size: holds the size of output_data (and will be
* replaced by the actual size of parameters)
* @subkey: ignored
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 2.12.0
**/
int
gnutls_pubkey_get_openpgp_key_id(gnutls_pubkey_t key,
unsigned int flags,
unsigned char *output_data,
size_t * output_data_size,
unsigned int *subkey)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_privkey_import_openpgp:
* @pkey: The private key
* @key: The private key to be imported
* @flags: Flags for the import
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 2.12.0
**/
int gnutls_privkey_import_openpgp(gnutls_privkey_t pkey,
gnutls_openpgp_privkey_t key,
unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_privkey_export_openpgp:
* @pkey: The private key
* @key: Location for the key to be exported.
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 3.4.0
*/
int gnutls_privkey_export_openpgp(gnutls_privkey_t pkey,
gnutls_openpgp_privkey_t * key)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_privkey_import_openpgp_raw:
* @pkey: The private key
* @data: The private key data to be imported
* @format: The format of the private key
* @keyid: The key id to use (optional)
* @password: A password (optional)
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 3.1.0
**/
int gnutls_privkey_import_openpgp_raw(gnutls_privkey_t pkey,
const gnutls_datum_t * data,
gnutls_openpgp_crt_fmt_t
format,
const gnutls_openpgp_keyid_t
keyid, const char *password)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_pcert_import_openpgp_raw:
* @pcert: The pcert structure
* @cert: The raw certificate to be imported
* @format: The format of the certificate
* @keyid: The key ID to use (NULL for the master key)
* @flags: zero for now
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 3.0
**/
int gnutls_pcert_import_openpgp_raw(gnutls_pcert_st * pcert,
const gnutls_datum_t * cert,
gnutls_openpgp_crt_fmt_t
format,
gnutls_openpgp_keyid_t keyid,
unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_pcert_import_openpgp:
* @pcert: The pcert structure
* @crt: The raw certificate to be imported
* @flags: zero for now
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 3.0
**/
int gnutls_pcert_import_openpgp(gnutls_pcert_st * pcert,
gnutls_openpgp_crt_t crt,
unsigned int flags)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_pcert_export_x509:
* @pcert: The pcert structure.
* @crt: An initialized #gnutls_openpgp_crt_t.
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 3.4.0
*/
int gnutls_pcert_export_openpgp(gnutls_pcert_st * pcert,
gnutls_openpgp_crt_t * crt)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_openpgp_privkey_sign_hash:
* @session: is a gnutls session
* @status: is ignored
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*/
void
gnutls_openpgp_send_cert(gnutls_session_t session,
gnutls_openpgp_crt_status_t status)
{
return;
}
/**
* gnutls_certificate_get_peers_subkey_id:
* @session: is a gnutls session
* @id: will contain the ID
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*
* Since: 3.1.3
**/
int gnutls_certificate_get_peers_subkey_id(gnutls_session_t session,
gnutls_datum_t * id)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
/**
* gnutls_openpgp_privkey_sign_hash:
* @key: Holds the key
* @hash: holds the data to be signed
* @signature: will contain newly allocated signature
*
* This function is no-op.
*
* Returns: %GNUTLS_E_UNIMPLEMENTED_FEATURE.
*/
int
gnutls_openpgp_privkey_sign_hash(gnutls_openpgp_privkey_t key,
const gnutls_datum_t * hash,
gnutls_datum_t * signature)
{
return GNUTLS_E_UNIMPLEMENTED_FEATURE;
}
|