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

Đang mở
#1,133 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

  • #1138 của @opidopiopi — đã đóng, không merge

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
cli, security

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
14.8k
Fork
3.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenVPN/openvpn

Tất cả issue của OpenVPN/openvpn

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.