- **status**: unassigned --> review
- **assigned_to**: Gary Lee
- **Milestone**: future --> 5.1.FC



---

** [tickets:#1674] leap: add support for encode & decode of long DN**

**Status:** review
**Milestone:** 5.1.FC
**Created:** Mon Feb 01, 2016 09:27 AM UTC by Gary Lee
**Last Updated:** Mon Feb 01, 2016 09:27 AM UTC
**Owner:** Gary Lee


Currently, ncs_edp_sanamet encodes a string by storing the length in 2 bytes, 
followed by a fixed array of SA_MAX_NAME_LENGTH characters. This function, 
osaf_decode_sanamet() and osaf_encode_sanamet() need to be enhanced to support 
long DNs.

One proposal is:

if length < SA_MAX_NAME_LENGTH, encode as present
if length >= SA_MAX_NAME_LENGTH, encode as a variable string like ncs_edp_string

On the decode side, one can tell from the length (2 bytes) which encoding 
scheme is used.
This should allow compatibility with older releases.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to