ó
    €Ï,
  ã                   ó<   • S r SSKrS	S jrS	S jrS rS rS rS rg)
z#Utilities for OS Login subcommands.é    Nc                 óÞ   • U(       d  UR                  U 5      n0 nUR                  (       d  0 $ UR                  R                   H%  nUR                  R                  X4R                  '   M'     U$ )zCReturn a dictionary of fingerprints/keys from the OS Login Profile.)ÚGetLoginProfileÚsshPublicKeysÚadditionalPropertiesÚvalueÚkey)ÚuserÚoslogin_clientÚprofileÚkey_dirÚssh_pub_keys        Ú7lib/googlecloudsdk/command_lib/oslogin/oslogin_utils.pyÚGetKeyDictionaryFromProfiler      s^   € æ	Ø×,Ñ,¨TÓ2€GØ€'à	×	×	Ø€Ià×*Ñ*×?Ô?€kØ*×0Ñ0×4Ñ4€GO‰OÓñ @ð 
€.ó    c                 óÞ   • U(       d  UR                  U 5      n/ n[        US5      (       a  UR                  (       d  / $ UR                   H  nUR                  UR                  5        M      U$ )zCReturn a list of 'private' security keys from the OS Login Profile.ÚsecurityKeys)r   Úhasattrr   ÚappendÚ
privateKey)r	   r
   r   Úsk_listÚsecurity_keys        r   ÚGetSecurityKeysFromProfiler   $   s]   € æ	Ø×,Ñ,¨TÓ2€Gà€'Ü	˜.×	)Ñ	)°×1E×1EØ€Ià×*Ô*€lØ‡NN<×*Ñ*Ö+ñ +ð 
€.r   c                 ót   • UR                  U 5      nUR                  (       a  UR                  R                  $ g ©N)r   r   r   )r	   r
   r   s      r   ÚGetKeysFromProfiler   3   s2   € Ø×*Ñ*¨4Ó0€'Ø××Ø× Ñ ×5Ñ5Ð5ð r   c                 óà   • UR                  U 5      nU(       a  U $ U R                  5       nU(       d  g[        U5      S:X  a  US   nOUS   nUR                  5        H  u  pVXF;   d  M  Us  $    g)zCReturn the fingerprint of an SSH key that matches the key argument.Né   r   )ÚgetÚsplitÚlenÚitems)Úkey_argÚprofile_keysr   Ú	key_splitÚ	key_valueÚfingerprintÚssh_keys          r   ÚFindKeyInKeyListr(   9   so   € ð 	×Ñ˜Ó!€#ÞØ€Nð m‰m‹o€)Þ	ØÜˆƒ^qÓØ˜!‘Ià˜!‘€Ià*×0Ñ0Ö2Ñ€kØÕØÒò 3r   c                 ód   • U (       d  g [         R                   " 5       nX-   n[        US-  5      nU$ )Né@B )ÚtimeÚint)ÚttlÚnowÚexpiry_secsÚexpiry_usecss       r   ÚConvertTtlArgToExpiryr1   N   s/   € Þ	ØÜ	Š	‹€#Ø‘	€+Ü[ 7Ñ*Ó+€,Ø	Ðr   c                 óˆ   • U (       d  g [        U 5      n U S-  n[        R                  " S[        R                  " U5      5      $ )Nr*   z%Y-%m-%dT%H:%M:%SZ)r,   r+   ÚstrftimeÚgmtime)ÚusecÚsecs     r   ÚConvertUsecToRfc3339r7   W   s5   € Þ	Ø
Ü	ˆT‹€$Øˆw‰€#Ü	ŠÐ+¬T¯[ª[¸Ó-=Ó	>Ð>r   r   )Ú__doc__r+   r   r   r   r(   r1   r7   © r   r   Ú<module>r:      s-   ðñ *ó ôôò6òò*ó?r   