Management responses to `pkcs11-id-[count|get]` commands behave like notifications not responses

Aperta
#1,133 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

  • #1138 di @opidopiopi — chiusa senza merge

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c
Ambito
cli, security

Direzione di ricerca

Start by reading the management interface command handlers for pkcs11-id-count and pkcs11-id-get, then compare how they format responses with other management commands that use SUCCESS:/ERROR: or multiline END output. The issue asks for these commands to use the usual response pattern, with listing all IDs when pkcs11-id-get has no index as a possible follow-up; done means management clients can process the responses as command replies.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

When sending a pkcs11-id-count or pkcs11-id-get command via the management interface, the response does not follow the usual SUCCESS:/ERROR: or multiline followed by END pattern.

Instead the response looks like a notification like >LOG:... or >BYTECOUNT:

>PKCS11ID-COUNT:1
>PKCS11ID-ENTRY:'0',<......>

This makes handling the response a bit inconvenient, as a client must either handle the responses like notifications or implement a special case for these exceptions.

Would it be possible change this behavior?

This would also enable the possibility to change the pkcs11-id-get command to list all available ids when no index is specified. In that case the usual multiline-END pattern could be used.

Lingua principale
C
Stelle
14.8k
Fork
3.4k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenVPN/openvpn

Tutte le issue di OpenVPN/openvpn

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.