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

Abierto
#1,133 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

  • #1138 de @opidopiopi — cerrado sin fusionar

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c
Área
cli, security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C
Estrellas
14.8k
Forks
3.4k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenVPN/openvpn

Todos los issues de OpenVPN/openvpn

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.