K 10 svn:author V 2 ae K 8 svn:date V 27 2016-11-22T13:43:06.572472Z K 7 svn:log V 487 Rework key_newsav(). This function used by SADB_GETSPI and SADB_ADD handlers. It allocates new SA and depending from SADB message does some initialization. SADB_GETSPI initializes only few SA's fields. This SA stored with LARVAL state in savtree_larval list of SA head. Then it can be updated by SADB_UPDATE message. SADB_ADD initializes all SA's fields and this SA stored with MATURE state in savtree_alive list, after initialization it is allowed to change only SA's lifetime fields. END